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'm trying to rewrite an app with TCA based on UIKit, but confused about how to properly manage UIAlertController present state within Reducer right now.
Here is a minimum feature module codes for my case. confirmationDialog of FeatureState is key to notify presenting or dismissing the UIAlertController. However, UIAlertController will automatically dismiss when an alert button tapped to send an specific action to reducer and confirmationDialog still stay non-nil. Should I change the confirmationDialog status in the specific action at the same time? Hope some advices from you.
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'm trying to rewrite an app with TCA based on UIKit, but confused about how to properly manage
UIAlertController
present state withinReducer
right now.Here is a minimum feature module codes for my case.
confirmationDialog
ofFeatureState
is key to notify presenting or dismissing theUIAlertController
. However,UIAlertController
will automatically dismiss when an alert button tapped to send an specific action to reducer andconfirmationDialog
still stay non-nil. Should I change theconfirmationDialog
status in the specific action at the same time? Hope some advices from you.Beta Was this translation helpful? Give feedback.
All reactions