Vinxi streaming example
Hi there, I am currently trying to fix the Vinxi SSR streaming example. I've updated it to the latest version and fixed the breaking changes, but I cannot get it to work properly. Firstly the Vite HMR is broken because the client cannot find the Vite preamble, this is apparently due to the vite react plugin not supporting streaming correctly (it does not add the preamble automatically when streaming). The preamble needs to be added once streaming is ready and needs to be and async module. But I cannot find out how and where to render it, Vinxi already returns the preamble as part of its manifest but the module is not async. If I manually mark it as async then the router throws with a
_a.assets is null, maybe this is a hydration error? Any ideas here? Thanks.GitHub
router/examples/react/vinxi-basic-ssr-streaming/app/server.tsx at m...
🤖 Fully typesafe Router for React (and friends) w/ built-in caching, 1st class search-param APIs, client-side cache integration and isomorphic rendering. - alessandrojcm/router
GitHub
vite hot reloading does not work with server side streaming with re...
Describe the bug Bug/feature request: Vite hot reloading does not work with react 18 renderToPipeableStream (https://react.dev/reference/react-dom/server/renderToPipeableStream). renderToPipeableSt...
5 Replies
afraid-scarlet•2y ago
Tanner is currently porting over the tanstack.com website over to TSR.
Could you check out the repo? and see if there's anything there's that's possibly missing.
afraid-scarlet•2y ago
GitHub
tanstack.com/app/client.tsx at tsr · TanStack/tanstack.com
The marketing and docs site for all TanStack projects - TanStack/tanstack.com
like-goldOP•2y ago
Sure I'll take a look thanks
Done, that worked just opened a pr there 👌🏽
I'm playing around with vinxi myself and I've a couple of questions about that migration, could I make them here?
afraid-scarlet•2y ago
I haven't really gone into the Vinxi stuff.
Maybe open a separate question/thread about it with your specific questions?
like-goldOP•2y ago
Sure will do