-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Virtualizer: ScrollTo hooks & callbacks #27864
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
Virtualizer: ScrollTo hooks & callbacks #27864
Conversation
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| FluentProviderWithTheme | mount | 78 | 85 | 10 | Possible regression |
| InfoButton | mount | 17 | 16 | 5000 | Possible regression |
All results
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| Avatar | mount | 578 | 580 | 5000 | |
| Button | mount | 284 | 298 | 5000 | |
| Field | mount | 1009 | 1052 | 5000 | |
| FluentProvider | mount | 663 | 666 | 5000 | |
| FluentProviderWithTheme | mount | 78 | 85 | 10 | Possible regression |
| FluentProviderWithTheme | virtual-rerender | 84 | 70 | 10 | |
| FluentProviderWithTheme | virtual-rerender-with-unmount | 87 | 83 | 10 | |
| InfoButton | mount | 17 | 16 | 5000 | Possible regression |
| MakeStyles | mount | 860 | 843 | 50000 | |
| Persona | mount | 1598 | 1542 | 5000 | |
| SpinButton | mount | 1256 | 1288 | 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 4e32934:
|
📊 Bundle size reportUnchanged fixtures
|
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 1acc2cdf9ab63707eb26d656fca5161680df42c5 (build) |
AkimaLunar
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.
Really neat way to implement scroll! 🚢
packages/react-components/react-virtualizer/etc/react-virtualizer.api.md
Outdated
Show resolved
Hide resolved
packages/react-components/react-virtualizer/etc/react-virtualizer.api.md
Outdated
Show resolved
Hide resolved
packages/react-components/react-virtualizer/src/components/Virtualizer/Virtualizer.types.ts
Outdated
Show resolved
Hide resolved
packages/react-components/react-virtualizer/src/hooks/useImperativeScrolling.types.ts
Outdated
Show resolved
Hide resolved
packages/react-components/react-virtualizer/src/hooks/useImperativeScrolling.types.ts
Outdated
Show resolved
Hide resolved
...t-virtualizer/src/components/VirtualizerScrollViewDynamic/useVirtualizerScrollViewDynamic.ts
Outdated
Show resolved
Hide resolved
packages/react-components/react-virtualizer/src/components/Virtualizer/Virtualizer.types.ts
Outdated
Show resolved
Hide resolved
packages/react-components/react-virtualizer/src/components/Virtualizer/Virtualizer.types.ts
Outdated
Show resolved
Hide resolved
packages/react-components/react-virtualizer/src/components/Virtualizer/useVirtualizer.ts
Outdated
Show resolved
Hide resolved
packages/react-components/react-virtualizer/src/hooks/useImperativeScrolling.types.ts
Outdated
Show resolved
Hide resolved
packages/react-components/react-virtualizer/src/hooks/useImperativeScrollingDynamic.ts
Outdated
Show resolved
Hide resolved
...irtualizer/src/components/VirtualizerScrollViewDynamic/VirtualizerScrollViewDynamic.types.ts
Outdated
Show resolved
Hide resolved
...react-components/react-virtualizer/stories/VirtualizerScrollViewDynamic/ScrollTo.stories.tsx
Outdated
Show resolved
Hide resolved
...react-components/react-virtualizer/stories/VirtualizerScrollViewDynamic/ScrollTo.stories.tsx
Outdated
Show resolved
Hide resolved
...react-components/react-virtualizer/stories/VirtualizerScrollViewDynamic/ScrollTo.stories.tsx
Outdated
Show resolved
Hide resolved
packages/react-components/react-virtualizer/src/components/Virtualizer/Virtualizer.types.ts
Outdated
Show resolved
Hide resolved
acf1414 to
bd9fa85
Compare
...nts/react-virtualizer/src/components/VirtualizerScrollView/useVirtualizerScrollViewStyles.ts
Outdated
Show resolved
Hide resolved
...ualizer/src/components/VirtualizerScrollViewDynamic/useVirtualizerScrollViewDynamicStyles.ts
Outdated
Show resolved
Hide resolved
...-components/react-virtualizer/src/utilities/ImperativeScrolling/imperativeScrolling.types.ts
Outdated
Show resolved
Hide resolved
...-components/react-virtualizer/src/utilities/ImperativeScrolling/imperativeScrolling.types.ts
Outdated
Show resolved
Hide resolved
...react-components/react-virtualizer/stories/VirtualizerScrollViewDynamic/ScrollTo.stories.tsx
Outdated
Show resolved
Hide resolved
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.
Please address the styles file duplication
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.
Please address the styles file duplication
d9e9a8a to
388dec5
Compare
🕵 fluentuiv9 No visual regressions between this PR and main |
3ad2fae to
4e32934
Compare
|
🎉 Handy links: |
|
🎉 Handy links: |
|
🎉 Handy links: |
|
🎉 Handy links: |
|
🎉 Handy links: |
|
🎉 Handy links: |
|
🎉 Handy links: |
|
🎉 Handy links: |
|
🎉 Handy links: |
|
🎉 Handy links: |
* master: applying package updates doc: Remove wrong recommendation from input (microsoft#28168) fix: Outline color now respects OS force colors settings (microsoft#28182) Datepicker onCalendarOpenStateChange prop (microsoft#28136) feat(react-file-type-icons): Add getFileTypeIconAsUrl utility (microsoft#27336) applying package updates [FIX] Updates selection dot and label positioning for ChoiceGroupOption when an Image or Icon is present. (microsoft#28173) chore(react-infobutton): Rename InfoTip to InfoIcon (microsoft#28177) fix(react-datepicker-compat): Make DatePicker Compat stories SSR safe (microsoft#28017) Added `tab` focus mode to the Breadcrumb (microsoft#28046) docs: Add usable documentation (microsoft#28155) applying package updates Fix up rebase code (microsoft#27864) fix: ContextualMenu indexing in sections (microsoft#28127) applying package updates fix: Layer sets focus visible classname for its FocusRectsProvider (microsoft#28157) docs(react-infobutton): Update stories to show better guidance (microsoft#28144) fix(react-avatar): Do not render the image when src prop is undefined (microsoft#28146) feat(react-datepicker-compat): Add null to value prop and handle controlled cases correctly (microsoft#28056)
|
🎉 Handy links: |
|
🎉 Handy links: |
New Behavior
ScrollTo hooks for scrolling animated or instantly to a specific item index
Callback for when a flagged index has been rendered
Optional isScrolling flag available in the child render function for users to render lightweight placeholders
Related Issue(s)
#27217
#27218
#27219