Skip to content

Commit 7f24861

Browse files
authored
Update router.py for guard async compatibility
Update router.py for guard async compatibility
2 parents 5af054b + 5fab0da commit 7f24861

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fletx/core/routing/router.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ async def _check_activation_guards(
371371
if not await guard.can_activate(route_info):
372372
redirect_path = await guard.redirect_to(route_info)
373373
if redirect_path:
374-
self.navigate(redirect_path, replace=True)
374+
await self.navigate(redirect_path, replace=True)
375375
return NavigationResult.REDIRECTED
376376
return NavigationResult.BLOCKED_BY_GUARD
377377

0 commit comments

Comments
 (0)