M
M
Michail2019-01-06 03:34:52
Angular
Michail, 2019-01-06 03:34:52

How to choose a specific reducer to dispatch in ngrx store?

Hello. I didn’t quite understand how to dispatch to a specific reducer.
There is

export const rootReducer = {
    user: userReduser,
    dialogs: dialogsReduser
};

Which I include in app.modul.
in the dispatch service like this
private store: Store<MainState>
this.store.dispatch(new Actions.ToggleSignInDealog(true))

If you do this, the action goes through all the reducers. Tell me how to choose a certain one?
There is a suspicion that it can be somehow selected by the select type

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Spirin, 2019-01-06
@Michail_04

The action must pass through all reducers.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question