Does ngrx preserve action order?

Viewed 89

If multiple actions are dispatched on the same store:

store.dispatch(new SomeAction());
store.dispatch(new SomeOtherAction());

Are the reducers guaranteed to process these actions in the same order they were dispatched?

1 Answers

Yes they are. But keep in mind that effects are async, for example if SomeAction is handled by EffectA and it dispatches another action EffectAction, that SomeOtherAction will probably be handled before EffectAction.

Related