Replies: 2 comments
-
I have the same issue... getting arguments from Middleware always return null. I'm using middleware to avoid users to access an specific route from a multistep form in which step x needs arguments from step x - 1. I also tried to make the redirect like this: ` ` but I get other errors because is rendering while setting State. Anybody has solve this? @jasonlaw |
Beta Was this translation helpful? Give feedback.
-
Same issue until now.. I found that Get.arguments can only see the arguments you set in the Middlware itself. |
Beta Was this translation helpful? Give feedback.
-
I've just implemented GetMiddleware on my project. I thought it was good to validate the data right before the page was called, but I found a problem with my implementation.
AppPage Routes:
Code to call a page
CheckProfileMiddleware
Result
Arguments always return null
I can't use parameters because I need to parse object data as default value for the page.
Please help.
Beta Was this translation helpful? Give feedback.
All reactions