diff --git a/app/lib/core/providers/router.dart b/app/lib/core/providers/router.dart index 15d1eb5a..1cb4c7c8 100644 --- a/app/lib/core/providers/router.dart +++ b/app/lib/core/providers/router.dart @@ -98,7 +98,11 @@ class CurrentTopRoute extends _$CurrentTopRoute { } void update() { - state = getCurrentRoute(); + unawaited( + Future(() { + state = getCurrentRoute(); + }), + ); } router.routerDelegate.addListener(update); diff --git a/app/lib/core/providers/router.g.dart b/app/lib/core/providers/router.g.dart index efaaf06d..f5bb2fd7 100644 --- a/app/lib/core/providers/router.g.dart +++ b/app/lib/core/providers/router.g.dart @@ -75,7 +75,7 @@ final class CurrentTopRouteProvider } } -String _$currentTopRouteHash() => r'60bc1b11ab636ba250b891eed24f7e7dd8e62d81'; +String _$currentTopRouteHash() => r'bf9956935ede399b815348926bb75c6bad22619e'; abstract class _$CurrentTopRoute extends $Notifier { RouteBase? build();