Replies: 1 comment
-
I notice in the source code that updater is called with ' |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Which @ngrx/* package(s) are the source of the bug?
component-store
Minimal reproduction of the bug/regression with instructions
My code at hand is messy so I can only give a pseudo example. Let's say I have a ComponentStore:
When I call the updaterA and effectB in order:
I would expect that foo being updated to 1, and printed out. However the effect gets triggered before the updater, and I see 0 being printed out.
Expected behavior
Expected: the updaterA takes effect and update the foo's value, and THEN the effect call takes effect to print out the latest foo's value.
Versions of NgRx, Angular, Node, affected browser(s) and operating system(s)
All latest versions of NgRx etc.
Other information
No response
I would be willing to submit a PR to fix this issue
Beta Was this translation helpful? Give feedback.
All reactions