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
When store.dispatch is queuing multiple dispatch requests it seems that only the first dispatch requests results in setting the new value. Then afterDispatch is called for the each of the queued dispatch events which seems never to call _setState.
How to reproduce, build a page which dispatches multiple actions which call a rest api, subscribe to state changes and observe that only the first one will published.
Assumption every store.dispatch call that changes the state will be published to subscribers.
When store.dispatch is queuing multiple dispatch requests it seems that only the first dispatch requests results in setting the new value. Then afterDispatch is called for the each of the queued dispatch events which seems never to call _setState.
How to reproduce, build a page which dispatches multiple actions which call a rest api, subscribe to state changes and observe that only the first one will published.
Assumption every store.dispatch call that changes the state will be published to subscribers.
Code in question: https://github.com/aurelia/aurelia/blob/master/packages/state/src/store.ts
Function: dispatch
The text was updated successfully, but these errors were encountered: