Skip to content

[storage] Sync Support for tauriStorage #678

Open
@jaydevelopsstuff

Description

@jaydevelopsstuff

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions