KEMBAR78
Failing test: componentWillUnmount called twice by gaearon · Pull Request #24281 · facebook/react · GitHub
Skip to content

Conversation

gaearon
Copy link
Collaborator

@gaearon gaearon commented Apr 5, 2022

Adds two tests for #24280. One passes (useLayoutEffect), one that fails (componentWillIUnmount).

The cause is that we clear .destroy fields so they don't get called twice. But we don't have a similar mechanism for classes.

I don't know how to fix this yet.

@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Apr 5, 2022
@sizebot
Copy link

sizebot commented Apr 5, 2022

Comparing: af73043...36a1726

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.min.js = 131.40 kB 131.40 kB = 41.99 kB 41.99 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 136.45 kB 136.45 kB = 43.43 kB 43.43 kB
facebook-www/ReactDOM-prod.classic.js = 433.07 kB 433.07 kB = 79.60 kB 79.60 kB
facebook-www/ReactDOM-prod.modern.js = 418.07 kB 418.07 kB = 77.24 kB 77.24 kB
facebook-www/ReactDOMForked-prod.classic.js = 433.07 kB 433.07 kB = 79.61 kB 79.61 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against 36a1726

@gaearon
Copy link
Collaborator Author

gaearon commented Apr 11, 2022

Fixed in #24308.

@gaearon gaearon closed this Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants