Skip to content

context.hyper.navigate(...) doesn't return a value #2

@strash

Description

@strash

To illustrate the issue:

// -> main.dart
...
Future<void> onOpenInfoPressed() async {
    final bool? isInfoClosed = await context.hyper.navigate(RouteName("info_route"));
}
...


// -> info_view.dart
...
// this method returns a value to the `main.dart`
void onClosePressed() {
    context.hyper.pop<bool>(true);
}

// this method navigates to another nested view.
// THE ISSUE: if we navigate to that view and navigate back than the awaiting `navigate` in the `main.dart` will never return a value
void openOtherNestedView() {
    context.hyper.navigate(RouteName("another_nested_route"));
}
...

Is this intended behavior or a bug?

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