Replies: 1 comment
-
|
It sounds like your understanding is correct. The state should be set by a navigation such as a Link or Navigate component or with the imperative navigation API and then read from |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How is
solid-app-router'sstateproperty supposed to work? I'm using theNavigatecomponent with a simple object forstatewhich contains the pathname before the redirect (to/login). Then on the/loginroute I thought I could just grab that usinguseLocation'slocation.state. But this isnull. What am I missing?Also, I understand if this is supposed to be over at
solid-app-router's repo, but I though maybe because I'm usingsolid-startanyway it could very well be a problem here. Anyway if you think this should be asked atsolid-app-routerinstead, please let me know (or just transfer the discussion?).Thanks
Beta Was this translation helpful? Give feedback.
All reactions