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
allow processing of sync actions resulting from state update (#1360)
* allow processing of sync actions resulting from state update
Sending an action into the system synchronously from a ViewStore's publisher
can result in state updates publishing the wrong, old, value.
This PR fixes it by keeping the `Store` in `sending` state while
we publish state updates. Once that's done, we check if there
were any new actions coming in, in which case we feed them back and
start processing again.
* Clean up and clarify behavior
Co-authored-by: Stephen Celis <[email protected]>
(cherry picked from commit 0855c9952549173fc7c655fcee31ffbb709e2dac)
# Conflicts:
# Sources/ComposableArchitecture/Store.swift
0 commit comments