Skip to content

Commit

Permalink
docs: update store recipes to clarify proper use of META_REDUCERS tok…
Browse files Browse the repository at this point in the history
…en in libs (#1970)
  • Loading branch information
jrista authored and brandonroberts committed Jul 9, 2019
1 parent b26127a commit c09ba19
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions projects/ngrx.io/content/guide/store/recipes/injecting.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,23 @@ export function getMetaReducers(
provide: META_REDUCERS,
deps: [SomeService],
useFactory: getMetaReducers,
multi: true,
},
],
})
export class AppModule {}
</code-example>

<div class="alert is-important">

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.

</div>


## Injecting Feature Config

Expand Down

0 comments on commit c09ba19

Please sign in to comment.