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
feat(data-table): add onIncludedRowsChange callback #3130
Conversation
This pull request is being automatically deployed with ZEIT Now (learn more). 🔍 Inspect: https://zeit.co/uber-ui-platform/baseweb/nj8lzecr9 |
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.
do we have to add this to the typescript defs too?
Visual changes were detected on this branch. Please review the following PR containing updated snapshots: #3131 |
Co-authored-by: UberOpenSourceBot <UberOpenSourceBot@users.noreply.github.com>
Typescript defs on |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit d654d54:
|
* feat(data-table): add onIncludedRowsChange callback * test(vrt): update visual snapshots for 893c273 [skip ci] (uber#3131) Co-authored-by: UberOpenSourceBot <UberOpenSourceBot@users.noreply.github.com> * fix(data-table): lint Co-authored-by: UberOpenSourceBot <33560951+UberOpenSourceBot@users.noreply.github.com> Co-authored-by: UberOpenSourceBot <UberOpenSourceBot@users.noreply.github.com>
closes: https://github.com/uber/baseweb/issues/3099
Description
Adds a new prop to DataTable that is called when the included rows in the table change. This is useful if the application needs to do something with the filtered/sorted 'view' that the user has configured. Please note, that it's important to have a stable function provided to this prop. See here for an example. If the function is in-lined, it causes an update loop.
Scope