-
-
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
[core][data grid] Fix useTimeout clear lifecycle #16031
base: master
Are you sure you want to change the base?
[core][data grid] Fix useTimeout clear lifecycle #16031
Conversation
@@ -1 +0,0 @@ | |||
export { default as useTimeout } from '@mui/utils/useTimeout'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that nobody depends on this file, dead code.
Deploy preview: https://deploy-preview-16031--material-ui-x.netlify.app/ |
842ef67
to
830a42e
Compare
830a42e
to
4f477c8
Compare
/** | ||
* TODO, remove this file, have dependents import from: | ||
* import useTimeout from '@mui/utils/useTimeout'; | ||
* directly. | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only brought it back so we can quickly learn if this is correct or wrong (meaning so we can merge #16031, before mui/material-ui#44897, so we test it with a smaller userbase.
4f477c8
to
b407d7d
Compare
To read first: mui/material-ui#44897. Refs a guaranteed to be cleaned up until unmounted, so if they are missing, we are cleaning up too late.
So I don't think #14987's two PR fixes are correct.