Server-side redirects are done client-side
Why redirects made from a server query is done client-side ? Is it mandatory to use middlewares to have true server redirect ?

3 Replies

Query may be called inside a createAsync.
With option deferStream true you can block any streaming to the client before the async resource has resolved.
https://docs.solidjs.com/solid-router/reference/data-apis/create-async#options
https://docs.solidjs.com/solid-start/building-your-application/data-loading
What would you expect to see in the network tab after a "true" server side redirect?
Data loading - SolidDocs
Documentation for SolidJS, the signals-powered UI framework
createAsync - SolidDocs
Documentation for SolidJS, the signals-powered UI framework
The network tab was used to highlight the fact that the redirect was made client side
deferStream
was indeed the property I was looking for, thanks ! :frogapprove: