redux-persist icon indicating copy to clipboard operation
redux-persist copied to clipboard

Documentation for Migration is unnecessary complicated.

Open AmitDigga opened this issue 2 years ago • 2 comments

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

  1. Talks about a real life scenario. Like a store of books and movies
    1. How to add one more key like songs ?
    2. How to remove one key like books?
    3. How to modify existing books data?
  2. {... 1: (state) => {...}} what does this mean. Here 1 is the new state version or old state version?
  3. If old version is 2 and new version is 5, how migrations will work?
  4. What will happen if i have missing key in migration { 1: ()=>{} , 2:()=>{} , 4:()=>{}}
  5. What is rehydrated and how it works related to migration?
  6. A example of createMigration usage and same usage without createMigration.

AmitDigga avatar Sep 22 '23 13:09 AmitDigga

Any Redux-related documentation is unnecessary complicated 😅

Grawl avatar Feb 22 '24 03:02 Grawl