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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, is there a way to mount a client-side app on a div element and hydrate it without wrapping it in the server-side app?
My SSR setup as follows:
Server entry:
Client entry that works:
My goal is to hydrate
ClientApp
directly, without wrapping it in server-side code:Client entry that does not work:
I do not receive any hydration errors, but the reactivity is broken. Is there a way to hydrate the client.
You can try it on: https://stackblitz.com/edit/vitejs-vite-zvc3tzc3?file=src%2Fclient.entry.js,src%2Fserver.entry.js&terminal=dev
Beta Was this translation helpful? Give feedback.
All reactions