Skip to content
This repository has been archived by the owner on Mar 10, 2021. It is now read-only.

Migrations #9

Open
ryanlntn opened this issue Jan 16, 2018 · 1 comment
Open

Migrations #9

ryanlntn opened this issue Jan 16, 2018 · 1 comment

Comments

@ryanlntn
Copy link
Member

Per #8 v5 has added first class migration support. We should be providing support for this in this plugin as it's the preferred way of purging state when updating reducers.

Amurmurmur added a commit to Amurmurmur/ignite-redux-persist that referenced this issue Feb 5, 2018
@maartenvandillen
Copy link

maartenvandillen commented Jul 11, 2019

@ryanlntn Hi I’m trying to get migrations to work. When I update the reducerVersion the createMigrate keeps logging “versions match, noop migration”. I suspect the version always stays at -1.

Also, when entering a number as reducerVersion the app crashes as it expects a string. How does this map to the default reducer version of -1, which is a number?

Edit: I have added the version property to the REDUX_PERSIST.storeConfig object. That was missing from the ignite template. I think I got it working now, but the original reducerVersion and logic is no longer needed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants