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
davidde
changed the title
[Bug]: Example in README > Examples > Avoid Hydration Mismatch > Images does not work on initial load
[Bug]: Example in README > Examples > Avoid Hydration Mismatch > Images does not work on initial load
Sep 4, 2024
What happened?
This code from the README causes
Warning: Prop 'loading' did not match. Server: "null" Client: "lazy"
:It does not render the image on initial load or page refresh.
I noticed it works with the
useEffect/setMounted
hack, but this causes other problems like layout shift. Is there a fix for this?Version
^0.3.0
What browsers are you seeing the problem on?
Firefox, Chrome
The text was updated successfully, but these errors were encountered: