antfu / vite-ssg

Static site generation for Vue 3 on Vite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Client-side app not currently hydrating

gryphonmyers opened this issue · comments

This is admittedly a highly confusing issue because the Vue documentation is a bit sparse in this area, but as far as I understand it based on my reading of Vue source, in order to benefit from client-side hydration (thus avoiding re-rendering the DOM in the client), we need to use createSSRApp both on the server and in the client. I see this issue was flagged and corrected with https://github.com/antfu/vite-ssg/pull/117/files, but then quickly reverted with b553763. Why was the change reverted, exactly? I'm not seeing that second commit linked to any issues.