antfu-collective / vite-ssg

Static site generation for Vue 3 on Vite
MIT License
1.32k stars 136 forks source link

re-rendering issues #393

Open famppy-lumbar opened 7 months ago

famppy-lumbar commented 7 months ago

Describe the bug

We were previously using SSR and recently adopted viteSSG.

In the service, the iframe sends parent.location.replace and only replaces the inside of the DOM.

After introducing viteSSG, it doesn't work the way it used to, and now it renders the entire page anew.

This might not be the problem. It could simply be that I'm not understanding the behavior correctly. But when I read the documentation, I couldn't find a solution to this, and I need your help in this regard.

Reproduction

It only needs to replace the DOM inside the page, but it reloads the entire page

System Info

System:
    OS: Sonoma 14.1.1(23B81)
    CPU: Apple M2
    Memory: 16 GB
  Binaries:
    Node: 18.16.0
    npm: 9.8.0
    pnpm: 8.6.2
  Browsers:
    Chrome: 122.0.6261.57 (arm64)

Used Package Manager

pnpm

Validations