Re: Exit to top?
Posted: Mon Aug 26, 2024 11:29 am
I see... However not sure this classes as a bug in "exit to top" as such
It seems (although I've not tested this extensively) that using "exit to top" in a modal only stops all handlers running in the modal - code in the calling is suspended and resumes when the modal is closed. I suspect this is by design and hence not a bug.
Regarding dialogData: My concern is that this is a global and context-less.
Setting the dialogData or setting the <customProp> of <stack> is effectively the same thing, except you can set multiple custom props rather than having to put all the values into a single global. And by binding the custom prop to a stack, you can provide context.
The code is identical - even as far as resetting the dialogData on completing actions - otherwise the algorithm won't work (it will stop at iteration 1 as is the case with your algorithm above).
It seems (although I've not tested this extensively) that using "exit to top" in a modal only stops all handlers running in the modal - code in the calling is suspended and resumes when the modal is closed. I suspect this is by design and hence not a bug.
Regarding dialogData: My concern is that this is a global and context-less.
Setting the dialogData or setting the <customProp> of <stack> is effectively the same thing, except you can set multiple custom props rather than having to put all the values into a single global. And by binding the custom prop to a stack, you can provide context.
The code is identical - even as far as resetting the dialogData on completing actions - otherwise the algorithm won't work (it will stop at iteration 1 as is the case with your algorithm above).