You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
This example never updates the title if you use RouterOutlet and the urls have childrens.
classAppModuleextendsModule {
@overridevoidbinds(i) {}
@overridevoidroutes(r) {
r.child('/test/:dummy',
child: (context) =>Column(
children: [
Text("This title never changes = ${r.args.params["dummy"]}"), //<--- NEVER CHANGESElevatedButton(
onPressed: () =>Modular.to.navigate('/test/cat/info'),
child:constText('Navigate to /test/cat/info'),
),
ElevatedButton(
onPressed: () =>Modular.to.navigate('/test/dog/info'),
child:constText('Navigate to /test/dog/info'),
),
Expanded(child:RouterOutlet()) //<--- if you comment this line and remove the "/info" form the naviate urls it works.
],
),
children: [
ChildRoute('/info', child: (context) =>Text("Info")),
ChildRoute('/log', child: (context) =>Text("log")),
]);
}
}
I would expect the "child" builder from the '/test/:dummy' to be called each time the ":dummy" changes. But it doesn't do that if it has child routes...
Describe the bug
This example never updates the title if you use RouterOutlet and the urls have childrens.
I would expect the "child" builder from the '/test/:dummy' to be called each time the ":dummy" changes. But it doesn't do that if it has child routes...
this works if you remove the RouterOutlet
Environment
flutter_modular: 6.3.2
provider: ^6.0.0
The text was updated successfully, but these errors were encountered: