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

MIssing multi property on META_REDUCERS provider #7

Open
luillyfe opened this issue Jul 20, 2020 · 0 comments
Open

MIssing multi property on META_REDUCERS provider #7

luillyfe opened this issue Jul 20, 2020 · 0 comments

Comments

@luillyfe
Copy link

I got my app crashed when I was missing multi property for META_REDUCERS provider. Then I read the documentation,

Careful attention should be called to the use of the multi property in the provider here for META_REDUCERS. As this injection token may be utilized by many libraries concurrently, specifying multi: true is critical to ensuring that all library meta reducers are applied to any project that consumes multiple NgRx libraries with registered meta reducers.

But maybe is due to something that in the new version changed, in any case I want to let you know.

{
      provide   : META_REDUCERS,
      deps      : [ROOT_STORAGE_KEYS, ROOT_LOCAL_STORAGE_KEY, LocalStorageService],
      useFactory: getMetaReducers
 },

it should be fixed by adding,

{
      provide   : META_REDUCERS,
      deps      : [ROOT_STORAGE_KEYS, ROOT_LOCAL_STORAGE_KEY, LocalStorageService],
      useFactory: getMetaReducers,
      multi: true
 },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant