I am new to solid and frontend in general and I was wondering how I can change the URL of the app.
I am authenticating my users on the homepage / and I want to redirect users to /submit
I have a signal called isAuthenticated and an effect that is checking if it changed to true and then I want to redirect. Having used react a little bit, I know useNavigate exists, looking for how to do it in Solid.
#Change URL and render the page matching to the <Route>
13 messages · Page 1 of 1 (latest)
Using solid start?
Or solid-router?
If yes you can do this
const navigate = useNavigate()
navigate("/whatever")
that works but i am getting this in my editor
neovim?
yeah
Which lsp?
tsserver
Weird probably your tsconfig is messed up