Skip to content

[BUG] "Hydration completed but contains mismatches" when path contains URL params #29

Open
@zyxkad

Description

@zyxkad

Describe the bug

When I add some url params such as ?a=1&b=2 after the page's URL, the console log an error Hydration completed but contains mismatches. and the page rendering is incorrect

Reproduction

  1. Clone from https://github.com/GlobeMC/crashmc.com
  2. pnpm install && pnpm run docs:build && pnpm run docs:preview
  3. Access http://localhost:4173/client/system.html and http://localhost:4173/client/system.html?someparam=somevalue
  4. The page without param will works well, but the page with the URL param will somehow mixed with the home page's content

OR

Just access https://vite-pwa-org.netlify.app/guide/register-service-worker.html?

Expected behavior

The two pages should looks exactly same.

Some information at vuejs/vitepress#3469

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