You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Re-rendering fails to display React Select properly, for instance when an hydratation error causes the app to re-render
This repository reproduces the bug in a minimal setup: I have a pristine project with just React Select installed. It shows that when rendering <html> or <head> again, the result is different than expected: React Select doesn't display well, as it does in the first rendering.
Unfortunately, this re-rendering does happen in the real life, and for reasons independant from an app, such as a browser extension messing up with the DOM (typically, Bitwarden).
A solution is to switch to another lib than React Select, but I imagine this could happen with any other lib so it's a bit scary.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Re-rendering fails to display React Select properly, for instance when an hydratation error causes the app to re-render
This repository reproduces the bug in a minimal setup: I have a pristine project with just React Select installed. It shows that when rendering
<html>
or<head>
again, the result is different than expected: React Select doesn't display well, as it does in the first rendering.Unfortunately, this re-rendering does happen in the real life, and for reasons independant from an app, such as a browser extension messing up with the DOM (typically, Bitwarden).
A solution is to switch to another lib than React Select, but I imagine this could happen with any other lib so it's a bit scary.
Related issues:
With those related issues, I understand there's a problem with undesired re-rendering, but I still don't see why the re-rendering fails this way.
Beta Was this translation helpful? Give feedback.
All reactions