SolidJSS
SolidJSβ€’2y agoβ€’
12 replies
icanflyit

How to do client side redirects

Quick client vs SSR question: What is the recommended way to do a redirect from the client side? My understanding is throw redirect() is only available from an SSR context.

Also, if I wanted to redirect regardless of whether I was client of server side, would "use_server" along with throw redirect() be appropriate there. If not what would the recommended way to do this be.
Was this page helpful?