Prevent duplicate bottom sheet entry
Closed this issue · 1 comments
ribuemsyne commented
Hi,
I liked to prevent wolt_modal_sheet not to open if there is another wolt modal sheet opened or the screen which requested the bottom sheet just destroyed/exited from navigation. Is there currently any feature for this?
ulusoyca commented
@ribuemsyne this should be done in state management level. I am working on a comprehensive demo app. You can do the following:
- Give a name to your modal sheet:
- Get the current route name: https://stackoverflow.com/a/54962118
Check if it is modal sheet route.
Please let me know if this helps.