Skip to content

HMR not working after failed hydration #7706

Closed

Description

@dmtkpv

Vue version

3.2.45

Link to minimal reproduction

https://stackblitz.com/edit/vitejs-vite-knf34v?file=App.vue

Steps to reproduce

Сhange a value e.g. const a = ref(2)

What is expected?

Value is changed on the web page

What is actually happening?

HTML is removed from <div id="app" />

System Info

No response

Any additional comments?

No response

Activity

  1. Jevon617 commented on Apr 27, 2023

    @Jevon617

    During HMR reload, the div element is unmounted. However, in SSR mode, the mountComponent process does not remount the div element but hydrates it instead, causing the issue of the div element being deleted.

  2. added a commit that references this issue on Apr 27, 2023
    0513099
  3. added a commit that references this issue on May 13, 2025
    9c4dbbc
  4. locked and limited conversation to collaborators on May 28, 2025
  5. added a commit that references this issue on Sep 10, 2025
    7a48714
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions