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

.startPersist convenience #201

Open
jamesgpearce opened this issue Dec 4, 2024 · 0 comments
Open

.startPersist convenience #201

jamesgpearce opened this issue Dec 4, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@jamesgpearce
Copy link
Contributor

Basically have a convenience method for this pattern.

    async (persister) => {
      await persister.startAutoLoad();
      await persister.startAutoSave();
    },

Maybe a flag to say whether load then save or save then load. Probably should take initialContent for the load.

Might be able to alias this for startSync in the Synchronizer override.

@jamesgpearce jamesgpearce added the enhancement New feature or request label Dec 4, 2024
@jamesgpearce jamesgpearce self-assigned this Dec 4, 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

1 participant