Closed lukehorvat closed 2 weeks ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
drei | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jun 14, 2024 9:35pm |
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
:tada: This PR is included in version 9.107.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Why
Both
Stats
andStatsGl
don't remove class names set via theclassName
prop on rerender. In the following example, ifshowStats
is initiallyfalse
and then later changes totrue
, theHidden
class does not get removed from the DOM element.What
Fixed by removing the previously added class names during
useEffect
cleanup.Checklist