[DevTools Bug]: CSS Animation Errors When Using Devtools
Website or app
https://stackblitz.com/edit/stackblitz-starters-n26smqed?file=pages%2Findex.js
Repro steps
Repro steps:
- Install 7.0.0 React DevTools
- Use this sample project
- Open preview in new tab
- Run the animation and disable the DevTools to run it again
The animation becomes abnormal after using DevTools 7.0.0 The error happens not only the browser extension, but also local terminal.
https://github.com/user-attachments/assets/95960302-f3d3-4acb-b8d4-f511ecdd2ad1
How often does this bug happen?
Every time
DevTools package (automated)
No response
DevTools version (automated)
No response
Error message (automated)
No response
Error call stack (automated)
Error component stack (automated)
GitHub query string (automated)
This issue will cause some existing React projects to display abnormally, for example rc-segmented, antd.
https://github.com/user-attachments/assets/d0f3ee26-06b8-4a12-b6b0-815ee5d5738d
I suspect that a feature introduced in version 7.0.0 executed more function calls before the animation was executed, causing the style to refresh and thus causing animation anomalies. As shown in the figure below, in version 7.0.0, the original continuous animation was divided into two parts.
DevTools 6.1.5
DevTools 7.0.0
@eps1lon Could it be related to suspense boundary measurements? Looking at the trace for 7.0.0, looks like it is fired during the transform animation, but I am not sure exactly how this could affect it.
https://github.com/ant-design/ant-design/issues/55325 https://github.com/ant-design/ant-design/issues/55404 https://github.com/ant-design/ant-design/issues/55269 https://github.com/ant-design/ant-design/issues/55253 https://github.com/ant-design/ant-design/issues/55251 https://github.com/ant-design/ant-design/issues/55257
v7.0.1 React DevTools When I add a classname to a DOM element dynamically. The related styles do not take effect. After I tried to disable the extension, it resume normal.
Now i use v6.0.1 React DevTools, this error has not occurred