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
Which @ngneat/effects-* package(s) are the source of the bug?
effects, effects-ng
Is this a regression?
No
Description
Please see the complete example at Stackblitz.
Although the effects execution order should be intuitively dependent on the execution order of actions, in reality, it depends on the effects declaration order.
The example provided in the Stackblitz prints SECOND followed by FIRST, even though it should be the other way. In order to fix this behaviour, it is necessary to change the effects declaration order (moving the load effect at the end). This can introduce some serious bugs which are hard to explore.
Please provide a link to a minimal reproduction of the bug
Hi. I looked at your example and it works fine. of()(in the TodoService) is synchronous, and since its effect is declared first it also prints first. that's not a problem with effects, it's how rxjs works.
Which @ngneat/effects-* package(s) are the source of the bug?
effects, effects-ng
Is this a regression?
No
Description
Please see the complete example at Stackblitz.
Although the effects execution order should be intuitively dependent on the execution order of actions, in reality, it depends on the effects declaration order.
The example provided in the Stackblitz prints
SECOND
followed byFIRST
, even though it should be the other way. In order to fix this behaviour, it is necessary to change the effects declaration order (moving theload
effect at the end). This can introduce some serious bugs which are hard to explore.Please provide a link to a minimal reproduction of the bug
https://stackblitz.com/edit/stackblitz-starters-heh5qh?devToolsHeight=33&file=src%2Ftodo.effects.ts
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in
No response
Anything else?
In my opinion, this should be mentioned in the docs, at least.
Do you want to create a pull request?
No
The text was updated successfully, but these errors were encountered: