Comments (1)
This is not a Remix issue but an invalid DOM modification when using React SSR + Hydration: https://react.dev/reference/react-dom/client/hydrateRoot#caveats
hydrateRoot() expects the rendered content to be identical with the server-rendered content. You should treat mismatches as bugs and fix them
Hydration expects the initial client side render to match the server side render exactly - and mutating the DOM like this during page load will always cause issues. Sometimes this is unavoidable due to browser extensions and other scenarios and React is working on fixing those scenarios. But your best bet is to avoid manually mutating the DOM outside of React - and especially before hydration.
Here's a few related issues/discussions in the Remix repo which may have some useful information for handling these scenarios: #5244, #4902
And a blog post from one of our community members: https://www.jacobparis.com/content/remix-hydration-errors
from remix.
Related Issues (20)
- Vulnerability detected in library Braces
- [Vite] Remix probably serves malformed response HOT 4
- Node Fetch: Cannot cancel a stream that already has a reader HOT 3
- Random preloads added for images HOT 1
- `assetsDir` not properly resolved when using `basename` when using Wrangler HOT 1
- Splat Routes that would have been prioritized can be overridden by Dynamic Segments. HOT 7
- remix hydration error when using gtag HOT 1
- [Vite] [Cloudflare] dev server start failed with http_proxy environment variable
- Onclick handler not working in remix and problem installing tailwindcss HOT 5
- MetaFunction data type not inferred from clientLoader HOT 3
- Application Error: failed to execute insertBefore on Node HOT 22
- Vitest looks for package.json in every workspace when using vitePlugin HOT 2
- [BUG]: cloudflareDevProxyVitePlugin: Issue in DEV with Remix/Vite/Drizzle/Cloudflare Pages/Supabase/Postgres HOT 2
- Can't import node_module SVG HOT 2
- Streaming does work not on Vite/MacOS HOT 2
- Hydration issues in prod builds of Cloudflare starter template HOT 3
- remix spa mode cannot with `[email protected]` , when run `npm run preivew`, it's a empty page HOT 4
- Express Vite template loads white screen in production mode HOT 10
- Basic Routing Works on Server but not Client HOT 4
- Firestore Lite Does Not Work in Loader HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from remix.