feat(react-tree): makes useFlatTree generic#27682
Merged
bsunderhus merged 2 commits intomicrosoft:masterfrom Apr 26, 2023
Merged
feat(react-tree): makes useFlatTree generic#27682bsunderhus merged 2 commits intomicrosoft:masterfrom
bsunderhus merged 2 commits intomicrosoft:masterfrom
Conversation
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: cbe5229d974dc11d345729a110b7493564a0b822 (build) |
Collaborator
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:
|
Collaborator
📊 Bundle size reportUnchanged fixtures
|
6293303 to
6dbebd2
Compare
packages/react-components/react-tree/src/hooks/useFlatTreeNavigation.ts
Outdated
Show resolved
Hide resolved
layershifter
approved these changes
Apr 26, 2023
marcosmoura
added a commit
to marcosmoura/fluentui
that referenced
this pull request
Apr 27, 2023
* 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)
Collaborator
|
🎉 Handy links: |
Collaborator
|
🎉 Handy links: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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