Replies: 1 comment 1 reply
-
Your view code could throw up its own confirmation dialog (or whatever) and bypass |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Say you have a screen with a button, clicking the button opens an overlay with a result: Yes/No. The state would contain information on whether to show the overlay, for simplicity sake it could just be a boolean. The boolean is then used to conditionally wrap/include the overlay screen somehow. All of this is fine, its very flexible and works great.
But looking at libraries like circuit, and in general: the way compose usually works (not that its related, I just like the design). Do you think it would be possible to somehow follow the same pattern, where the button click event handler directly calls
overlay.show { result:YesOrNo -> }
?I realize this goes against some of the principles in workflows, I just keep writing a bunch of boilerplate code for cases like this and.. there has to be a better way? If there is no result, Ive been fine with having a router of sorts that basically wires the navigation to my root workflow, which already has the boilerplate sorted out and can just .. add another overlay, backstack entry, etc.
Beta Was this translation helpful? Give feedback.
All reactions