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
Where SetHelloAction changes param3.hello.
The following is the console log - which shows that the second snapshot inside the select of the first state it not updated after the dispatch, but only inside the select of the relevant state. Is this how it should work?
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
-
This is more of a question about what the expected behavior should be more than anything else.
I have the following code:
Where
SetHelloAction
changesparam3.hello
.The following is the console log - which shows that the second snapshot inside the select of the first state it not updated after the dispatch, but only inside the select of the relevant state. Is this how it should work?
Stackblitz can be found here: https://stackblitz.com/edit/angular-ngxs-dispatch-inside-select?file=src%2Fmain.ts,src%2Fstates.ts
Beta Was this translation helpful? Give feedback.
All reactions