ant-design/ant-design

Skeleton unmounting throws errors in console in Preact

Open

#49.475 aperta il 18 giu 2024

Vedi su GitHub
 (3 commenti) (1 reazione) (0 assegnatari)TypeScript (54.612 fork)batch import
Inactivehelp wantedunconfirmed

Metriche repository

Star
 (98.031 star)
Metriche merge PR
 (Merge medio 3g 4h) (248 PR mergiate in 30 g)

Descrizione

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. Open console;
  2. Click button 'Loading' to show/hide the Skeleton;
  3. 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

Guida contributor