-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setState leak after unmount #150
Comments
@eps1lon Actually, I think that it's a regression from mui/material-ui#21581.
We moved the console throw logic from 1. to 2. hence left karma without coverage |
If karma had no warn/error logic then every test using toWarnDev/toErrorDev would throw. Why would code from the main repo affect code in this repo? |
Yeah so I had to investigate this more since you didn't communicate what you discovered: It's about unexpected calls not covering console warn/error, right? We should move this around, yes. PRs welcome. |
@eps1lon I will open a PR :) |
Fixed in mui/material-ui#22075 |
This reverts commit c9f1af7.
This reverts commit c9f1af7.
This reverts commit c9f1af7.
@dtassone The issue was caught in the CI (Karma), something is calling setState after the component is unmounted. It leaks.
@eps1lon this makes me think that we might have an improvement opportunity in the CI, shouldn't we fail if a component call console.warn or console.error during the tests? I believe it works when we run the tests in JSDOM, but not with Karma. I don't know why yet. The data grid might be an exception as all JSDOM tests are skipped (require layout).
The text was updated successfully, but these errors were encountered: