otter icon indicating copy to clipboard operation
otter copied to clipboard

[Feature]: Add the possibility to specify action types to invoke the reducer in the storage sync helper

Open Abhirocks889 opened this issue 1 year ago • 1 comments

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.

Abhirocks889 avatar Feb 06 '24 08:02 Abhirocks889

Can you explain in which case you have a state that is undefined after the store initialization?

kpanot avatar Feb 07 '24 10:02 kpanot