Closed lucasdidur closed 2 years ago
What do your routes look like? What is "normal" behavior to you?
I think they should be like pushReplacement
flutter behavior. Always rebuild the page, if params change.
Can you post a minimal repro that I can test against?
I have the same problem. The widget's constructor is called, but the build method does not work.
I use a bloc. If I create a bloc instance in the constructor method and pass it to the blocProvider, then after updating the page, a new bloc will be created in the constructor, but the previous blocProvider with the old bloc will remain in the widget tree.
I fixed this when I added a key for blocProvider. But maybe you know the solution better?
I will be able to show an example tomorrow.
following up here: https://github.com/csells/go_router/discussions/304
I have a route something like this
/prova/:idProva/questao/:ordem
So when I use
context.go("/prova/123/questao/1")
and then try to go to question 2context.go("/prova/123/questao/2")
the page does not update with new data, but shows on the console that is goin to the route "(GoRouter) going to /prova/123/questao/2".But when I use
context.push,
works normaly.