-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Description
BufferedActions will queue, but not handle, actions that come in while it's in the process of sending. This results in the action dangling in the buffer indefinitely until some other action comes through. This is a regression from 0.19.0
To Reproduce
Buffer Bug.zip
- Run the example project
- Press the button on
ViewController - Note that
viewStore.send(.didLoad)is executed as expected in ViewControllerB - Note that
.didLoadis not handled by either reducer - Dismiss ViewControllerB
- Note that
.didLoadanddidDismissare handled by reducer in succession.
Expected behavior
.didLoad should be processed by the reducer on the runloop it was sent (or at least in a timely manner)
Environment
- swift-composable-architecture version >= 0.20.0 (not an issue in 0.19.0)
- Xcode 12.5
diederich
Metadata
Metadata
Assignees
Labels
No labels