Skip to content
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

fix(useOverflowContainer): Removes double overflowManager creation #32459

Merged

Conversation

ling1726
Copy link
Member

@ling1726 ling1726 commented Sep 4, 2024

Adds an effect dependency exception to overflowManager creation in useOverflowContainer as it resulted in always recreating the overflowManager because the first mount flag would change.

Adds an effect dependency exception to overflowManager creation in
`useOverflowContainer` as it resulted in always recreating the
overflowManager because the first mount flag would change.
@ling1726 ling1726 requested a review from a team as a code owner September 4, 2024 20:24
@fabricteam
Copy link
Collaborator

fabricteam commented Sep 4, 2024

📊 Bundle size report

Package & Exports Baseline (minified/GZIP) PR Change
react-components
react-components: entire library
1.099 MB
271.641 kB
1.099 MB
271.641 kB
-2 B
react-overflow
hooks only
12.81 kB
4.821 kB
12.808 kB
4.819 kB
-2 B
-2 B
Unchanged fixtures
Package & Exports Size (minified/GZIP)
react-breadcrumb
@fluentui/react-breadcrumb - package
113.699 kB
31.498 kB
react-components
react-components: Button, FluentProvider & webLightTheme
69.14 kB
20.137 kB
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
218.197 kB
63.203 kB
react-components
react-components: FluentProvider & webLightTheme
44.447 kB
14.59 kB
react-portal-compat
PortalCompatProvider
8.39 kB
2.64 kB
react-timepicker-compat
TimePicker
107.387 kB
35.758 kB
🤖 This report was generated against 416d7ddb3bd0ef5187c151807f10a0cfa721e0c1

@fabricteam
Copy link
Collaborator

fabricteam commented Sep 4, 2024

Perf Analysis (@fluentui/react-components)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 644 668 5000
Button mount 311 297 5000
Field mount 1143 1150 5000
FluentProvider mount 732 715 5000
FluentProviderWithTheme mount 82 88 10
FluentProviderWithTheme virtual-rerender 39 41 10
FluentProviderWithTheme virtual-rerender-with-unmount 73 75 10
MakeStyles mount 844 861 50000
Persona mount 1761 1668 5000
SpinButton mount 1363 1395 5000
SwatchPicker mount 1683 1665 5000

@ling1726 ling1726 merged commit 47f0893 into microsoft:master Sep 5, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants