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

Add an option to delay the automatic persistence. #986

Merged
merged 2 commits into from
Jul 5, 2019
Merged

Conversation

leoek
Copy link
Contributor

@leoek leoek commented Feb 14, 2019

There are use cases, where the persistence cannot be started immediately. For example, if there is a passphrase from the user needed, to complete the initialization of the storage.

This PR adds the option manualPersist, which if set to true, avoids that the persistence is started automatically. persistor.persist() can be called later, to start persistence. For example if the initialization of the storage is completed.

The option is optional, therefore there wont be any compatibility issues, with previous versions. If the options object or the property is not set, everything will behave as before.

This fixes #952

@leoek
Copy link
Contributor Author

leoek commented Feb 22, 2019

@aguynamedben Can we get this merged please? There are no compatibility issues with previous version.

@leoek leoek mentioned this pull request May 10, 2019
@rt2zz
Copy link
Owner

rt2zz commented Jul 5, 2019

going to include this in the forthcoming rc

@rt2zz rt2zz merged commit 7bbf971 into rt2zz:master Jul 5, 2019
@rt2zz
Copy link
Owner

rt2zz commented Jul 5, 2019

6.0.0-pre2.0 npm i redux-persist@next

@alex-gokkun
Copy link

@leoek, thanks for the update! Looking forward!
Wanted to tell you that you forgot to update TS typings.

@leoek
Copy link
Contributor Author

leoek commented Jul 10, 2019

@alex-gokkun Thanks for the heads up. I'll provide them in a follow up.

@alex-gokkun
Copy link

@leoek, thank you!

@bitflower
Copy link

Just starting to dive deeper into this lib. Awesome work so far. Thanks for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Manual rehydrate
4 participants