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

Documentation for Migration is unnecessary complicated. #1453

Open
AmitDigga opened this issue Sep 22, 2023 · 1 comment
Open

Documentation for Migration is unnecessary complicated. #1453

AmitDigga opened this issue Sep 22, 2023 · 1 comment

Comments

@AmitDigga
Copy link

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.
@Grawl
Copy link

Grawl commented Feb 22, 2024

Any Redux-related documentation is unnecessary complicated 😅

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

No branches or pull requests

2 participants