Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Abhirocks889 opened this issue Feb 6, 2024 · 1 comment · May be fixed by #1320
Labels
enhancement New feature or request priority:low

Comments

@Abhirocks889
Copy link
Contributor

Abhirocks889 commented Feb 6, 2024

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.

@kpanot
Copy link
Contributor

kpanot commented Feb 7, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority:low
Projects
None yet
3 participants