-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[internals] Enable mui/no-floating-cleanup and fix leaks #22872
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
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -961,7 +961,11 @@ You need to upgrade to DataGridPro or DataGridPremium component to unlock multip | |
| }, [apiRef, canHaveMultipleSelection, checkboxSelection, isStateControlled, props.rowSelection]); | ||
|
|
||
| React.useEffect(() => { | ||
| runIf(props.rowSelection, removeOutdatedSelection); | ||
| // FIXME: no-op since #20668. `runIf` is curried, so this builds a wrapper and | ||
| // discards it (previously `runIfRowSelectionIsEnabled(removeOutdatedSelection)`, | ||
| // which invoked it). Restoring the call changes selection behavior, so it needs | ||
| // a decision; `void` preserves current behavior. See #20668. | ||
| void runIf(props.rowSelection, removeOutdatedSelection); | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Restoring the call (
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Resolved in 1d7dba4: deleted the dead effect. Since |
||
| }, [props.rowSelection, removeOutdatedSelection]); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will this cause trouble? |
||
|
|
||
| React.useEffect(() => { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.