Top "Ngrx-store" questions

Use this tag for questions related to the store package of the ngrx platform.

Catch error in combined pipe of lettable rxjs operators

We've just upgraded one of our applications to Angular 5, and started to transition into lettable operators as introduced in rxjs …

angular rxjs ngrx-store ngrx-effects angular5
What is the difference between StoreModule.forRoot() and StoreModule.forFeature()

Recently ngrx store changed the way to register the store variables in an angular application. What is the difference between …

angular ngrx-store ngrx-store-4.0
Angular 6 - Why use @ngrx/store rather than service injection

I am recently learning Angular 6 with @ngrx/store while one of the tutorial is to use @ngrx/store for state …

angular5 angular6 ngrx-store state-management
Ngrx Store Resets after browser refresh. How to make the application preserve the state?

I Dispatch a action from one component this.store.dispatch({type : STORE_TEAMCREST , payload : team.crestURI}); and in the other …

angular redux ngrx ngrx-store
Error: No provider for Store! when trying @ngrx/store with Angular 4.0

Problem: Error: No provider for Store! I'm bootstraping store module in main.ts: platformBrowserDynamic().bootstrapModule(AppModule,[ provideStore({ characters, vehicles }) ]); And …

angular ngrx ngrx-store
How to wait for 2 Actions in @ngrx/effects

Can effect wait two actions like Promise.all? Example: @Effect() pulic addUser() { return this.actions$.ofType(user.ADD) .switchMap(() => { …

angular typescript ngrx ngrx-effects ngrx-store
How to unsubscribe from ngrx/store?

I have a component which gets its data from subscribing to a store. this.store.select('somedata').subscribe((state: any) =&…

angular ngrx-store
How to create selector to select an item by id from ngrx store

I read ngrx store's documentation about selectors and need to figure out how to create a selector in order to …

typescript ngrx ngrx-store
NullInjectorError: No provider for ReducerManager

I am using the new ngrx 5. This is the file that holds the reducers and the featureSelector: import AppState from …

angular ngrx-store ngrx-store-4.0
Property 'payload' does not exist on type 'Action' when upgrading @ngrx/Store

I have the @ngrx/store package in my angular (4.x) app, and am upgrading from v2.2.2 -> v4.0.0. I …

angular typescript ngrx ngrx-store