You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Probably we can end up with vite-plugin-ssr or rakkasjs like convention.
My motivation is to replace remix in https://github.com/hi-ogawa/ytsub-v3 with something very simple "mostly CSR but nice HMR" system.
ssr only
Page export itself should be isomorphic and thus globPageRoutes is isomorphic
(convention) server document render callback convention
probably indexHtmlMiddleware abstraction won't be useful anymore
don't try to integrate with react-router loader convention
maybe we could use loader only for SSR to mutate queryClient (i.e. loader data itself is empty). then outside of react-router, we can just manually manage queryClient hydration.
Probably we can end up with vite-plugin-ssr or rakkasjs like convention.
My motivation is to replace remix in https://github.com/hi-ogawa/ytsub-v3 with something very simple "mostly CSR but nice HMR" system.
ssr only
Page
export itself should be isomorphic and thusglobPageRoutes
is isomorphicindexHtmlMiddleware
abstraction won't be useful anymoreEDIT: resolved in
ssr with server data
prior art
don't try to integrate with react-router loader convention
loader
only for SSR to mutatequeryClient
(i.e. loader data itself is empty). then outside of react-router, we can just manually manage queryClient hydration.just use https://tanstack.com/query/latest/docs/react/guides/ssr#using-other-frameworks-or-custom-ssr-frameworks
(convention) per-page-route server callback convention to prefetch query
default client side fetching (for client side navigation, there no server callback)
server document render hand-offs dehydrated state via custom script
client entry hydrate queryclient additionally
let client suspend on query inside Page
whether SSR comes with data or not depends only on whether you manually prefetch query
EDIT: resolved in
server side redirection
The text was updated successfully, but these errors were encountered: