Open peer-f opened 5 months ago
@Milad-Akarie Could this be an issue related to the way the browser history is saved? I had the same issue when using go_router where I had to provide encoding and decoding methods for data provided as extra argument.
I am facing the same issue with declarative router..
im facing this issue too, i got this issue when i navigate back from previous screen that require an argument.
i'm running into the same issue...would be awesome to get that fixed asap, thanks!
@Milad-Akarie any updates on this issue? This issue causes lots of problems in our production web app.
Hey @peer-f I suggest you adjust your design so you don't pass objects when working with web, even if somehow I support this usecase you still have to handle page refresh and deeplinking.
@Milad-Akarie thanks for the quick response!
So there is no way to store this data internally like go_router does?
Our application shares most of its business logic between mobile and web only the UI differs so I'd have to change this for the whole application.
I think the way arguments are handled in auto_route is really great which is why we use it most of the time.
Could this be solved if there was a way to provide serialization/deserialization logic for each query parameter? This way both page refresh and deeplinking could be achieved.
I have a page structure where I use arguments to provide data between screens inside of my authentication flow. The screens are reused from other locations inside of the app so they need to be able to accept arguments. The routes are not nested.
When I navigate from
welcome
tosign in
and from there toforgot password
and then press the back button the browser seems to loose the argument that is required bysign in
.After pressing the back button on
forgot password
I get routed back towelcome
with this error message:I would prefer not to use query parameters because there might be data that I don't want to expose in the url (our onboarding is really long and complex).
Thanks a lot for your help!