wildlifela / redux-persist-migrate

175 stars 25 forks source link

How to migrate older installs which do not have versions? #18

Open abinli opened 7 years ago

abinli commented 7 years ago

Hi,

I just start adding the version in the new code. However, there are older installs which do not have the version info. How do I migrate those installs?

Seems like redux-persist-migrate simply sets the version of the state to the current version without doing any migration (ie, those are treated like new installs)

Thanks!

rt2zz commented 7 years ago

@abinli yes this was an oversight, it has been addressed in the latest version via https://github.com/wildlifela/redux-persist-migrate/pull/14

additionally please note future development will be ongoing in redux-persist@5, which has migrations support build in: https://github.com/rt2zz/redux-persist/tree/v5