Title: Dock causes a React hydration mismatch on in SSR apps · Issue #482 · devframes/devframe · GitHub
Open Graph Title: Dock causes a React hydration mismatch on in SSR apps · Issue #482 · devframes/devframe
X Title: Dock causes a React hydration mismatch on in SSR apps · Issue #482 · devframes/devframe
Description: 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, ...
Open Graph Description: 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 wh...
X Description: 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 wh...
Opengraph URL: https://github.com/devframes/devframe/issues/482
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Dock causes a React hydration mismatch on \u003chtml> in SSR apps","articleBody":"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 \u003chtml> 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\nI opened a PR with a fix: #483\n\n- Repro: https://github.com/omridevk/devframe-ssr-hydration-repro (second commit = whole change)\n- No existing issue on hydration / safe-area (searched hydration, safe-area, useScreenSafeArea, suppressHydrationWarning, SSR).\n- Aware of #289, but that one is about the dock not loading under Nuxt SSR, a different problem.\n- The Next example doesn't show this: it renders its own UI with [`ui: false`](https://github.com/devframes/devframe/blob/415a30791c91385d359eeadd7946b6126ae5025f/examples/custom-hub-next/src/client/devframe/next-devframe-hub.ts#L223) and puts [`suppressHydrationWarning` on `\u003chtml>`](https://github.com/devframes/devframe/blob/415a30791c91385d359eeadd7946b6126ae5025f/examples/custom-hub-next/src/client/app/layout.tsx#L16).\n\n\n(Disclaimer, code was written with Claude, but was meticulously reviewed by a human being or so I claim to be :P )\n\n","author":{"url":"https://github.com/omridevk","@type":"Person","name":"omridevk"},"datePublished":"2026-11-04T19:55:28Z","url":"https://github.com/devframes/devframe/issues/482"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6dbd159d-84ee-766b-587f-3e1661a7fa98 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D370:35263:23A1C2:321985:6AFB6FBE |
| html-safe-nonce | 33e5995f3502b2b8c57b280acf75baf6781a13c4658543af7184084d10accec6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzcwOjM1MjYzOjIzQTFDMjozMjE5ODU6NkFGQjZGQkUiLCJ2aXNpdG9yX2lkIjoiNTcyODY2OTQ4OTA1OTAzMzAyMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7a49f9a8179b780b1dc0edfb3e9cb5846d2bcc4783a88594bcdd15a2efd45a15 |
| hovercard-subject-tag | issue:6210286061 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/devframes/devframe/482/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fc1adac1426c475707f547e8123523a891d1840507a27f7557ec141514055bcd/devframes/devframe/issues/482 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fc1adac1426c475707f547e8123523a891d1840507a27f7557ec141514055bcd/devframes/devframe/issues/482 |
| og:image:alt | 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 wh... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | omridevk |
| hostname | github.com |
| expected-hostname | github.com |
| None | cca289ecd54650fcf3c0b037a58b97186dee2cc4406819d87fab93728fd83700 |
| turbo-cache-control | no-preview |
| go-import | github.com/devframes/devframe git https://github.com/devframes/devframe.git |
| octolytics-dimension-user_id | 279879373 |
| octolytics-dimension-user_login | devframes |
| octolytics-dimension-repository_id | 1231722386 |
| octolytics-dimension-repository_nwo | devframes/devframe |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1231722386 |
| octolytics-dimension-repository_network_root_nwo | devframes/devframe |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 88808b1fae5ab8a526a73e7ce5542a10eb9d6971 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width