-
Notifications
You must be signed in to change notification settings - Fork 2.9k
chore(react-table): use Iterable instead of a Set for table selection API surface
#26892
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
chore(react-table): use Iterable instead of a Set for table selection API surface
#26892
Conversation
c481621 to
161105d
Compare
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 103b8977f8d5f8dd8c430bab46ff5308a2c76371 (build) |
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| Avatar | mount | 1301 | 1290 | 5000 | |
| Button | mount | 924 | 916 | 5000 | |
| Field | mount | 1941 | 1898 | 5000 | |
| FluentProvider | mount | 1571 | 1521 | 5000 | |
| FluentProviderWithTheme | mount | 581 | 580 | 10 | |
| FluentProviderWithTheme | virtual-rerender | 540 | 547 | 10 | |
| FluentProviderWithTheme | virtual-rerender-with-unmount | 585 | 575 | 10 | |
| InfoButton | mount | 517 | 517 | 5000 | |
| MakeStyles | mount | 1959 | 1945 | 50000 | |
| Persona | mount | 2833 | 2822 | 5000 | |
| SpinButton | mount | 2293 | 2270 | 5000 |
|
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 b93dca8:
|
161105d to
3b1513a
Compare
📊 Bundle size reportUnchanged fixtures
|
ling1726
left a comment
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.
Let's use the Iterable change as the PR title and changefile message
packages/react-components/react-table/src/hooks/useTableSelection.ts
Outdated
Show resolved
Hide resolved
8dce0be to
0593d60
Compare
- Converts types to allow Iterable instead of Set
0593d60 to
6bb6ba1
Compare
6bb6ba1 to
0b43add
Compare
Iterable instead of a Set for table selection API surface
🕵 fluentuiv9 No visual regressions between this PR and main |
* master: (93 commits) chore: migrate to jest 27 (microsoft#26835) chore: make lint task run without need of build (microsoft#26872) chore(react-table): exports UseTableSelectionOptions (microsoft#26892) applying package updates fix(react-card): allow elements to grow to fill the available space (microsoft#26616) fix: Popover without focus trap should not be aria-hidden (microsoft#26932) applying package updates applying package updates fix(react-combobox): Remove _getAriaActiveDescendantValue, compute aria-activedescendantvalue in state, and update currentPendingValue when the options change (microsoft#26574) fix: v8 Combobox role and accname for non-hidden icon button (microsoft#26905) fix: Removing possible recursive loop in Coachmark (microsoft#26934) Combobox: Fix cursor jumping to the end of input (microsoft#26931) Fix missing icons on website (microsoft#26797) fix: Fix the width of Input's focus border with appearance=underline (microsoft#26881) chore: Clean up Input's interactive styles (microsoft#26865) Remove codeowners from change files (microsoft#26935) chore: add splitbutton error warning to docs, remove button ariaDescription example (microsoft#26904) docs: Remove testing code from MenuList example (microsoft#26929) chore: refactor SpinButton to use makeResetStyles (microsoft#26867) feat: Set overflow on positioned element when `autosize` is applied (microsoft#26868) ...
…r-component * feat/drawer-base-component: (141 commits) remove DrawerContainer feat: WIP add initial draft for Drawer and DrawerContainer chore: migrate to jest 27 (microsoft#26835) chore: make lint task run without need of build (microsoft#26872) chore(react-table): exports UseTableSelectionOptions (microsoft#26892) applying package updates fix(react-card): allow elements to grow to fill the available space (microsoft#26616) fix: Popover without focus trap should not be aria-hidden (microsoft#26932) applying package updates applying package updates fix(react-combobox): Remove _getAriaActiveDescendantValue, compute aria-activedescendantvalue in state, and update currentPendingValue when the options change (microsoft#26574) fix: v8 Combobox role and accname for non-hidden icon button (microsoft#26905) fix: Removing possible recursive loop in Coachmark (microsoft#26934) Combobox: Fix cursor jumping to the end of input (microsoft#26931) Fix missing icons on website (microsoft#26797) fix: Fix the width of Input's focus border with appearance=underline (microsoft#26881) chore: Clean up Input's interactive styles (microsoft#26865) Remove codeowners from change files (microsoft#26935) chore: add splitbutton error warning to docs, remove button ariaDescription example (microsoft#26904) docs: Remove testing code from MenuList example (microsoft#26929) ...

Previous Behavior
UseTableSelectionOptionsselectedItemswas based on receiving aSetfrom the userNew Behavior
selectedItemsanddefaultSelectedItemsnow accepts aIterableinstead of aSet, which internally will be converted to aSetUseTableSelectionOptionstype.