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 ?
No description
3 Replies
Sufhal
SufhalOP3d ago
No description
Madaxen86
Madaxen862d ago
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
Sufhal
SufhalOP2d ago
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:

Did you find this page helpful?