Skip to content

Enable createMigrate to handle async migrations #866

Open
@ssorallen

Description

@ssorallen

The function passed to migrate can already handle a Promise, but createMigrate expects each of the integer migrations to be simple, synchronous transforms of PersistedState => PersistedState. It would be great to enable serial, asynchronous migrations in createMigrate. The change could be localized to createMigrate since the rest of of redux-persist already expects migrate to be asynchronous.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions