Skip to content

Push and await result from pop #23

Open

Description

@FluffyDiscord

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

Activity

  1. PlugFox commented on Jun 5, 2025

    @PlugFox
    Owner

    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.

  2. FluffyDiscord commented on Jun 6, 2025

    @FluffyDiscord
    Author

    How would you solve this instead? Using global/shared state seems like the only solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions