Skip to content

SSR Hydration mismatch with HeadlessUI starting in 3.4.x #10000

@drewtownchi

Description

@drewtownchi

Vue version

3.4.5

Link to minimal reproduction

https://github.com/drewtownchi/ssr-hydration-issue

Steps to reproduce

Run the project and look at the console. I originally found this when working in an Astro project but recreated it in a standalone Vite SSR template as a minimal repro.

What is expected?

No hydration issue

What is actually happening?

The rendered id for the disclosure button is increasing by 2 every time but the expected always stays at 1

System Info

System:
    OS: Windows 11 10.0.22621
    CPU: (12) x64 AMD Ryzen 5 2600 Six-Core Processor
    Memory: 16.18 GB / 31.95 GB
  Binaries:
    Node: 20.10.0 - C:\Program Files\nodejs\node.EXE
    npm: 8.19.1 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (120.0.2210.77)
    Internet Explorer: 11.0.22621.1

Any additional comments?

This was not an issue on 3.3.x but all version since 3.4.0 have exhibited this behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions