-
Notifications
You must be signed in to change notification settings - Fork 6.8k
docs(material/table): describe how to properly update MatTableDataSource #27708 #29406
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
Conversation
Added a description of how to update MatTableDataSource without breaking sorting Fixes angular#27708
src/material/table/table.md
Outdated
@@ -200,6 +200,8 @@ Note that if the data properties do not match the column names, or if a more com | |||
accessor is required, then a custom `sortingDataAccessor` function can be set to override the | |||
default data accessor on the `MatTableDataSource`. | |||
|
|||
When updating the data soure asynchronously avoid doing so by reinstanciate the entire `MatTableDataSource` as this could break sorting. Rather update it through the `MatTableDataSource.data` property. |
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.
reinstanciate -> recreating
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.
Updated with the requested copy changes
…rce angular#27708 (angular#29406) * docs(material/table): describe how to properly update MatTableDataSource Added a description of how to update MatTableDataSource without breaking sorting Fixes angular#27708 * Updated copy from reinstanciate to recreating
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Added a description of how to update MatTableDataSource without breaking sorting
Fixes #27708