Skip to content

Dock causes a React hydration mismatch on <html> in SSR apps #482

Open

Description

@omridevk

I am trying to make devframe work inside of SSR apps in React, I noticed useScreenSafeArea from vueuse is being used and it is modifying the HTML attributes, this is fine in SPA or Nuxt app, but when rendering inside of a SSR React app, the server send the tag bare, and then vue runs and add style attributes to the HTML tag, then react hydration kicks in and compares the DOM from the server to the one the client now and sees the mismatch and the console shows an hydration mismatch warning
I opened a PR with a fix: #483

(Disclaimer, code was written with Claude, but was meticulously reviewed by a human being or so I claim to be :P )

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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