-
Notifications
You must be signed in to change notification settings - Fork 2.9k
feat(react-tree): makes useFlatTree generic #27682
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(react-tree): makes useFlatTree generic #27682
Conversation
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: cbe5229d974dc11d345729a110b7493564a0b822 (build) |
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| Avatar | mount | 698 | 707 | 5000 | |
| Button | mount | 366 | 368 | 5000 | |
| Field | mount | 1269 | 1259 | 5000 | |
| FluentProvider | mount | 877 | 866 | 5000 | |
| FluentProviderWithTheme | mount | 117 | 116 | 10 | |
| FluentProviderWithTheme | virtual-rerender | 93 | 100 | 10 | |
| FluentProviderWithTheme | virtual-rerender-with-unmount | 110 | 98 | 10 | |
| InfoButton | mount | 23 | 23 | 5000 | |
| MakeStyles | mount | 1118 | 1119 | 50000 | |
| Persona | mount | 2007 | 1945 | 5000 | |
| SpinButton | mount | 1549 | 1554 | 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 d19c413:
|
📊 Bundle size reportUnchanged fixtures
|
6293303 to
6dbebd2
Compare
packages/react-components/react-tree/src/hooks/useFlatTreeNavigation.ts
Outdated
Show resolved
Hide resolved
* master: chore: enforce files naming to use .styles.ts [cxe-prg files] (microsoft#27707) chore: migrate to NodeJS v16 (microsoft#27711) remove react-avatar-context package (microsoft#27709) test: migrate all v9 libraries to use new conformance setup which improves test execution by approx 46% (microsoft#27669) chore: Add caret to react-datepicker-compat dependencies (microsoft#27671) test(fluentui/react): fix initial global leaks that were causing OOM issues (microsoft#27661) chore(react-utilities): simplifies useControllableState hook internals (microsoft#27702) chore: enforce files naming to use .styles.ts (microsoft#27698) feat: adds lazy loading example (microsoft#27587) feat: react-combobox space conditionally inserts character when freeform is true (microsoft#27025) chore(react-tree): updates useOpenItemsState internals (microsoft#27697) feat(tools): add conformance setup migration to migrate-converged-pkg generator (microsoft#27668) test: use `isolatedModules` for all ts-jest configs to lower memory footprint on CI (microsoft#27670) chore: bump @griffel/eslint-plugin & enable @griffel/hook-naming (microsoft#27687) feat(react-tree): makes useFlatTree generic (microsoft#27682) Enable export to codepen for charting library (microsoft#27539) Overflow: added useOverflowCount to exports (microsoft#27678) fix: Menu should not steal focus on re-render (microsoft#27688) feat(react-conformance): add new TS config api to be able to specify configName and configDir (microsoft#27664)
|
🎉 Handy links: |
|
🎉 Handy links: |
Previous Behavior
Current behaviour makes it harder to introduce new properties to items provided to
useFlatTreewhich might be cumbersome on some scenarios, as lazy loadingNew Behavior
Refactors hooks to ensure generic properties are passed down the line, allowing modification of the end type that'll be available by
getTreeItemProps