Closed romancitodev closed 1 month ago
This works fine in Firefox for me. This is likely something going on in your app or local dev setup?
the stackblitz playground code is the same that I have in local, it's a bit weird because I tried using Zen (uses firefox below) and I used Brave (uses chromium below) and I get the hydration problem (in local) but if I use the stackblitz webcontainer, it works.
I saw the network panel and the server returns a 200 with the number 1, thats ok, but I don't know why the hydration isn't working (for me). I created a repo holding the issue (https://github.com/romancitodev/remix-test) just to discard some bad configuration but isn't.
well, I figured out that the error comes from the react hydration directly.
I looked in other issues and I think this issue might be relationed #9850 (In the issue talks about some compatibility issues with some engines so can be this thing I guess)
Your repo works fine in firefox for me as well. Do you have extensions installed? They are known to cause issues with react hydration - see https://github.com/remix-run/remix/issues/4822
The only extension I have is the Bitwarden one.
Well, digging a little more, I found out that the bitwarden extension is the cause of the hydration error (I opened a private window without the extension and everything worked correctly).
Reproduction
https://stackblitz.com/edit/remix-run-remix-adjy1k?file=app%2Froutes%2Fcontacts.%24contactId.tsx
System Info
Used Package Manager
pnpm
Expected Behavior
The
defer
in firefox should work as in chrome.Actual Behavior
In chrome the hydration works, but in firefox for some reason, it does not.
Firefox: