otter
otter copied to clipboard
[Feature]: Add the possibility to specify action types to invoke the reducer in the storage sync helper
Context
The requirement is for syncing stores in feature modules instead of the root app module. This requires certain additional action types to be taken into account for invoking the reducer.
Proposal
The idea is to add a new optional property actionTypes to the SyncStorageConfig that will specify the action types for which the reducer should be invoked in case the state is undefined. This is required for syncing feature stores for which the action type UPDATE needs to be taken into account.
Can you explain in which case you have a state that is undefined
after the store initialization?