Skip to content
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

[docs] Add expansion state behavioral change to v6 migration guide #8108

Merged
merged 4 commits into from
Mar 3, 2023

Conversation

MBilalShafi
Copy link
Member

Closes #7771

@MBilalShafi MBilalShafi added docs Improvements or additions to the documentation component: data grid This is the name of the generic UI component, not the React module! v6.x labels Mar 2, 2023
@mui-bot
Copy link

mui-bot commented Mar 2, 2023

Netlify deploy preview

Netlify deploy preview: https://deploy-preview-8108--material-ui-x.netlify.app/

Updated pages

These are the results for the performance tests:

Test case Unit Min Max Median Mean σ
Filter 100k rows ms 636.6 987.6 714.1 789.68 141.326
Sort 100k rows ms 651.5 1,186.6 651.5 958.2 174.57
Select 100k rows ms 233 374.6 305.7 299.06 52.355
Deselect 100k rows ms 158.1 300.9 290.1 253.92 55.613

Generated by 🚫 dangerJS against 8fc1da5

@@ -281,6 +281,8 @@ Most of this breaking change is handled by `preset-safe` codemod but some furthe
+ const tabIndex = props.tabbableCell === column.field ? 0 : 1;
}
```
- Updating the [`rows` prop](/x/react-data-grid/row-updates/#the-rows-prop) or calling `apiRef.current.setRows` will now remove the expansion state of the grid as these methods are meant to replace the rows.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very minor thing.

Suggested change
- Updating the [`rows` prop](/x/react-data-grid/row-updates/#the-rows-prop) or calling `apiRef.current.setRows` will now remove the expansion state of the grid as these methods are meant to replace the rows.
- Updating [`rows` prop](/x/react-data-grid/row-updates/#the-rows-prop) or calling `apiRef.current.setRows` will now remove the expansion state of the grid as these methods are meant to replace the rows.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, just noticed I missed applying this before merging the PR 🤦‍♂️

@MBilalShafi MBilalShafi merged commit 6347a62 into mui:next Mar 3, 2023
@MBilalShafi MBilalShafi deleted the expansion-breaking-change branch March 3, 2023 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: data grid This is the name of the generic UI component, not the React module! docs Improvements or additions to the documentation v6.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[data grid] Tree data expansion state is lost when data is updated in 6.0.0-beta.1
4 participants