redux-persist
redux-persist copied to clipboard
Documentation for Migration is unnecessary complicated.
I have gone through https://github.com/rt2zz/redux-persist/blob/master/docs/migrations.md
Guide looks like snapshot of basic usage, without any compilation error. A real life use case will be very helpful.
Expectation from guide
- Talks about a real life scenario. Like a store of
booksandmovies- How to add one more key like
songs? - How to remove one key like
books? - How to modify existing books data?
- How to add one more key like
{... 1: (state) => {...}}what does this mean. Here1is the new state version or old state version?- If old version is
2and new version is5, how migrations will work? - What will happen if i have missing key in migration
{ 1: ()=>{} , 2:()=>{} , 4:()=>{}} - What is
rehydratedand how it works related to migration? - A example of
createMigrationusage and same usage withoutcreateMigration.
Any Redux-related documentation is unnecessary complicated 😅