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
Hi,
I wrote the following code to use actionSheet. Then when I close the sheet, I get a warning. Is it possible to use actionSheet and ifLet at the same time? As you can see in the print statement, the actionSheet is already nil when the PresentationAction is received; this warning is not displayed when the confirmationDialog is used. (We have selected actionSheet because we are supporting iOS14.)
Thank you.
An "ifLet" at "TCASample/ActionSheet.swift:47" received a presentation action when destination state was absent. …
Action:
ActionSheetSample.Action.actionSheet(.presented(.ok))
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 view 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:…)".
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I wrote the following code to use actionSheet. Then when I close the sheet, I get a warning. Is it possible to use actionSheet and ifLet at the same time? As you can see in the print statement, the actionSheet is already nil when the PresentationAction is received; this warning is not displayed when the confirmationDialog is used. (We have selected actionSheet because we are supporting iOS14.)
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions