let’s say I navigate from page a with context.push() and pass extra to page b.
then if I navigate to page c and then press the browser back button to go back to page b now extra is null and page shows error.
any solutions?
I think we can use query parameters but it brings up security problems.
2
Answers
You can follow one of the two possible solution:
popUntil
Edit:
Presently there is no way to achieve this using
go_router
. You can usego_router_flow
which is exactly likego_router
with this pop with value feature.Use the beamer package for routing.This problem occur in the go router.
beamer package link