Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[storage] Sync Support for tauriStorage #678

Open
jaydevelopsstuff opened this issue Aug 29, 2024 · 1 comment
Open

[storage] Sync Support for tauriStorage #678

jaydevelopsstuff opened this issue Aug 29, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@jaydevelopsstuff
Copy link

Describe The Problem To Be Solved

Currently, it seems there is no method for syncing changes with the tauriStorage storage backend.

Suggest A Solution

The JS API for Tauri's Store plugin (which the current impl uses) has an onChange method which can be used to receive any changes to the store via a callback, even if they are made from other windows or the Rust backend.

onChange fires anytime the store is modified, even when the change was made in the same window, so that will need to be taken into account to avoid infinite loops.

@atk
Copy link
Member

atk commented Aug 29, 2024

Internal changes are already reactive. The next step is to support a tauri file watcher (supported since v2).

@thetarnav thetarnav added the enhancement New feature or request label Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants