antfu-collective / vite-ssg

Static site generation for Vue 3 on Vite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

re-rendering issues

famppy-lumbar opened this issue · comments

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

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.