-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Description
Description
The reported issue linked below should be updated as sheet(store:) is deprecated. I didn't make a PR as I'm not sure if you want to keep the SwiftUI sentence with sheet(item) or remove that completely.
Line 650 in 642af1d
Architecture view modifier like "sheet(store:…)". |
An "ifLet" at "\(self.fileID):\(self.line)" received a presentation action when \
destination state was absent. …
Action:
\(debugCaseOutput(action))
This is generally considered an application logic error, and can happen for a few \
reasons:
• A parent reducer set destination state to "nil" before this reducer ran. This reducer \
must run before any other reducer sets destination state to "nil". This ensures that \
destination reducers can handle their actions while their state is still present.
• This action was sent to the store while destination state was "nil". Make sure that \
actions for this reducer can only be sent from a store when state is present, or \
from effects that start from this reducer. In SwiftUI applications, use a Composable \
Architecture view modifier like "sheet(store:…)"
Checklist
- I have determined whether this bug is also reproducible in a vanilla SwiftUI project.
- If possible, I've reproduced the issue using the
main
branch of this package. - This issue hasn't been addressed in an existing GitHub issue or discussion.
Expected behavior
Irrelevant
Actual behavior
Irrelevant
Reproducing project
Irrelevant
The Composable Architecture version information
main
Destination operating system
Irrelevant
Xcode version information
Irrelevant
Swift Compiler version information
Irrelevant
Metadata
Metadata
Assignees
Labels
No labels