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
I’m currently testing restoration functionality and have encountered an issue. When the app is reopened after a process death on Android, AutoRoute seems to attempt to open the last visited page. However, an error occurs because the page arguments are null.
ManufacturersByLetterRouteArgs can not be null because the corresponding page has a required parameter
RouteData.argsAs (package:auto_route/src/route/route_data.dart:99:9)
ManufacturersByLetterRoute.page.<anonymous closure> (package:mouser/core/navigation/app_router.gr.dart:191:25)
AutoRoute.buildPage (package:auto_route/src/route/auto_route_config.dart:92:21)
RouteMatch.buildPage (package:auto_route/src/matcher/route_match.dart:91:60)
RouteData.buildPage (package:auto_route/src/route/route_data.dart:191:19)
StackRouter._addEntry (package:auto_route/src/router/controller/routing_controller.dart:1586:23)
StackRouter._pushAllGuarded (package:auto_route/src/router/controller/routing_controller.dart:1561:29)
<asynchronous suspension>
Any ideas on why this might be happening? I’ve checked the documentation, but it doesn’t seem to mention anything about restoration.
Note: I have just tried using QueryParams instead and that does seem to work. Is this the recommended approach if we want to handle restoration? Or should args also be restored?
The text was updated successfully, but these errors were encountered:
Hi All,
I’m currently testing restoration functionality and have encountered an issue. When the app is reopened after a process death on Android, AutoRoute seems to attempt to open the last visited page. However, an error occurs because the page arguments are null.
Any ideas on why this might be happening? I’ve checked the documentation, but it doesn’t seem to mention anything about restoration.
Note: I have just tried using QueryParams instead and that does seem to work. Is this the recommended approach if we want to handle restoration? Or should args also be restored?
The text was updated successfully, but these errors were encountered: