defer state updates

This commit is contained in:
Fabian Freund
2026-02-15 19:09:23 +01:00
parent adceddf2c1
commit 00c4bbeb79
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -98,7 +98,11 @@ class CurrentTopRoute extends _$CurrentTopRoute {
}
void update() {
state = getCurrentRoute();
unawaited(
Future(() {
state = getCurrentRoute();
}),
);
}
router.routerDelegate.addListener(update);