Open AmitDigga opened 1 year ago
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.
books
movies
songs
{... 1: (state) => {...}}
1
2
5
{ 1: ()=>{} , 2:()=>{} , 4:()=>{}}
rehydrated
createMigration
Any Redux-related documentation 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
books
andmovies
songs
?books
?{... 1: (state) => {...}}
what does this mean. Here1
is the new state version or old state version?2
and new version is5
, how migrations will work?{ 1: ()=>{} , 2:()=>{} , 4:()=>{}}
rehydrated
and how it works related to migration?createMigration
usage and same usage withoutcreateMigration
.