octopus
octopus copied to clipboard
Push and await result from pop
Is your feature request related to a problem? Please describe. I often want to navigate to a screen to do something and then go back with some result. Right now I have to use Completer externally and somehow make it all work, which is cumbersome and prone to issues.
Describe the solution you'd like A way to push route and await result that the pushed route would provide, mostly by popping back.
Describe alternatives you've considered Externally manage this with completers
Additional context
I'm sorry, but this goes against declarative navigation. With declarative navigation you can "pop" page not only with Navigator, but with changing your url or deep links or something else.
How would you solve this instead? Using global/shared state seems like the only solution