Stacked-Org/stacked

[bug]: stacked_services in last version back method from RouterService makes navigation through 2 routes, and not one as it was before

Closed this issue · 1 comments

ziqq commented

Describe the bug

Last version back method from RouterService makes navigation through 2 routes, and not one as it was before

RPReplay_Final1689255938.MP4

To reproduce

Make simple bottom sheet and from viewModel use back from RouterService to close it after you logic

Solution

Revert

void back<T extends Object?>({T? result}) => router.navigateBack();

To

Future<bool> back<T extends Object?>({T? result}) => router.pop(result);

@ziqq please, use pop method instead of back for your use case. We changed this to align with auto_route package.