We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request
And maybe in here as well: https://docs.solidjs.com/solid-router/reference/primitives/use-navigate
Solid router has useNavigate and redirect. It wasn't clear to my why. I asked in Discord
useNavigate
redirect
@klequis
└── 📁categories └── [...notfound].jsx └── keyboards.jsx └── mice.jsx
I want [...notfund].jsx to redirect/navigate to /products/index.jsx. Does it matter if I use redirect vs useNavigate?
[...notfund].jsx
/products/index.jsx
And got an answer from Ryan I would not have thought of:
"redirect actually only works inside cache and action functions (edited) everywhere else useNavigate"
This seems like a good add to the doc.
No response
The text was updated successfully, but these errors were encountered:
We could probably add a note to the redirect page that it only works in cache/action functions. Thoughts?
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
What is this request related to?
Request
📋 Suggested
And maybe in here as well: https://docs.solidjs.com/solid-router/reference/primitives/use-navigate
📋 General description or bullet points
Solid router has
useNavigate
andredirect
. It wasn't clear to my why. I asked in Discord@klequis
I want
[...notfund].jsx
to redirect/navigate to/products/index.jsx
. Does it matter if I useredirect
vsuseNavigate
?And got an answer from Ryan I would not have thought of:
"redirect actually only works inside cache and action functions (edited)
everywhere else useNavigate"
This seems like a good add to the doc.
🖥️ Reproduction of code samples in StackBlitz
No response
The text was updated successfully, but these errors were encountered: