Skip to content

Commit 52fbbb6

Browse files
Update packages/go_router/lib/src/parser.dart
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 50eb455 commit 52fbbb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/go_router/lib/src/parser.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class GoRouteInformationParser extends RouteInformationParser<RouteMatchList> {
161161
});
162162
},
163163
onCanNotEnter: () {
164-
// If blocked, "stay" on last successful match if available.
164+
// If blocked, stay on the current route by restoring the last known good configuration.
165165
if (router.routerDelegate.currentConfiguration.isNotEmpty) {
166166
return SynchronousFuture<RouteMatchList>(
167167
router.routerDelegate.currentConfiguration,

0 commit comments

Comments
 (0)