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
This code actually works, and if I subscribe to the dispatch of MyAction, the subscription execution is after the end of this.finalize().
But I don't understand why, because what this code make (by doing a map instead of mergeMap) is returning an observable of observable.
Do ngxs subscribe to outer observable that one observable may return ?
Why mergeMap isn't necessary here ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello community,
I have an async action that does the following :
and the private method which is :
This code actually works, and if I subscribe to the dispatch of
MyAction
, the subscription execution is after the end ofthis.finalize()
.But I don't understand why, because what this code make (by doing a
map
instead ofmergeMap
) is returning an observable of observable.Do ngxs subscribe to outer observable that one observable may return ?
Why mergeMap isn't necessary here ?
Beta Was this translation helpful? Give feedback.
All reactions