Skip to content

Discussion: Approaches to data migration #13

@psychedelicious

Description

@psychedelicious

I'm exploring adding data migrations to our persisted state and have a very rough draft for handling this on a per-reducer basis.

I'm having some trouble imagining an implementation for whole-store migration. I suppose it would require some support from redux-remember to be integrated with its enhancer?

That said, does whole-store data migration even make sense with modern redux, with the emphasis and support for slices? Maybe a tidy migration abstraction for individual slices is a more sensible approach, especially with lots of slices.

Do you have any thoughts or experience with migrations? Thanks!

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions