ngxs-labs / async-storage-plugin

⏱ WIP: Async Storage Plugin
MIT License
34 stars 13 forks source link

feat(migration): migrate default state if value not already set #118

Closed marcjulian closed 4 years ago

marcjulian commented 4 years ago

Current behavior: The store is for the first access not yet initialized. Migrations are only applied to existing values of the store, hence the store is only migrated after the second reload time.

Expected behavior: The store is for the first access not yet initialized. Migrations are applied to the default values of the store.