Whenever I refresh the screen which is above another screens all below screens are disposed in web using go_router with context.pushNamed.
I tried html.window.onBeforeUnload.listen((event) async{ // do something });
in order to push the lost screens but it didn’t work.
I’ve tried using getX to handle the navigation, but it didn’t work either.
New contributor
Mohmd is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.