ant-design/ant-design
Vedi su GitHubSkeleton unmounting throws errors in console in Preact
Open
#49.475 aperta il 18 giu 2024
Inactivehelp wantedunconfirmed
Metriche repository
- Star
- (98.031 star)
- Metriche merge PR
- (Merge medio 3g 4h) (248 PR mergiate in 30 g)
Descrizione
Reproduction link
Steps to reproduce
- Open console;
- Click button 'Loading' to show/hide the Skeleton;
- Review the errors "Warning: [Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect." each time the component is unmounted.
What is expected?
No errors are thrown in console
What is actually happening?
2 errors are thrown in console each time the component is unmounted.
| Environment | Info |
|---|---|
| antd | 5.18.0 |
| React | Preact 10.22.0 |
| System | Windows |
| Browser | any |