Documentation for Migration is unnecessary complicated.
AmitDigga opened this issue · 1 comments
AmitDigga commented
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
books
andmovies
- 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. Here1
is the new state version or old state version?- If old version is
2
and new version is5
, how migrations will work? - What will happen if i have missing key in migration
{ 1: ()=>{} , 2:()=>{} , 4:()=>{}}
- What is
rehydrated
and how it works related to migration? - A example of
createMigration
usage and same usage withoutcreateMigration
.
Grawl commented
Any Redux-related documentation is unnecessary complicated 😅