You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I assume this would be more elegant:
In app.module.ts StoreModule.provideStore({ currentSearch: CurrentSearchReducer })
In xxx.component.ts constructor(private store: Store<any>) { this.store.select('currentSearch') .subscribe((data) => { ... }); }
Some interesting literature for a better ngrx structure:
Make sure ngrx/store patterns are applied the right way. If not, refactor accordingly.
The text was updated successfully, but these errors were encountered: