-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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: clear Modal timer on component unmount #32969
Merged
Merged
Conversation
This file contains 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
The timer in question is potentially somewhat long-lived so this ensures we don't invoke the callback after unmount.
📊 Bundle size reportUnchanged fixtures
|
fabricteam
reviewed
Oct 2, 2024
Mitch-At-Work
approved these changes
Oct 2, 2024
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.
Looks good
Perf Analysis (
|
Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
---|---|---|---|---|---|
BaseButton | mount | 629 | 634 | 5000 | |
Breadcrumb | mount | 1700 | 1677 | 1000 | |
Checkbox | mount | 1714 | 1712 | 5000 | |
CheckboxBase | mount | 1491 | 1506 | 5000 | |
ChoiceGroup | mount | 3012 | 2986 | 5000 | |
ComboBox | mount | 685 | 686 | 1000 | |
CommandBar | mount | 6542 | 6548 | 1000 | |
ContextualMenu | mount | 12230 | 12261 | 1000 | |
DefaultButton | mount | 807 | 822 | 5000 | |
DetailsRow | mount | 2238 | 2296 | 5000 | |
DetailsRowFast | mount | 2324 | 2230 | 5000 | |
DetailsRowNoStyles | mount | 2053 | 2046 | 5000 | |
Dialog | mount | 2866 | 2760 | 1000 | |
DocumentCardTitle | mount | 236 | 239 | 1000 | |
Dropdown | mount | 1995 | 2030 | 5000 | |
FocusTrapZone | mount | 1187 | 1180 | 5000 | |
FocusZone | mount | 1123 | 1097 | 5000 | |
GroupedList | mount | 42763 | 42780 | 2 | |
GroupedList | virtual-rerender | 20468 | 20355 | 2 | |
GroupedList | virtual-rerender-with-unmount | 52206 | 52240 | 2 | |
GroupedListV2 | mount | 235 | 233 | 2 | |
GroupedListV2 | virtual-rerender | 209 | 210 | 2 | |
GroupedListV2 | virtual-rerender-with-unmount | 224 | 249 | 2 | |
IconButton | mount | 1175 | 1141 | 5000 | |
Label | mount | 356 | 341 | 5000 | |
Layer | mount | 2769 | 2847 | 5000 | |
Link | mount | 412 | 402 | 5000 | |
MenuButton | mount | 997 | 993 | 5000 | |
MessageBar | mount | 21513 | 21486 | 5000 | |
Nav | mount | 2053 | 2049 | 1000 | |
OverflowSet | mount | 783 | 810 | 5000 | |
Panel | mount | 1883 | 1910 | 1000 | |
Persona | mount | 746 | 763 | 1000 | |
Pivot | mount | 925 | 911 | 1000 | |
PrimaryButton | mount | 938 | 941 | 5000 | |
Rating | mount | 4691 | 4700 | 5000 | |
SearchBox | mount | 931 | 938 | 5000 | |
Shimmer | mount | 1938 | 1951 | 5000 | |
Slider | mount | 1377 | 1342 | 5000 | |
SpinButton | mount | 2964 | 3005 | 5000 | |
Spinner | mount | 399 | 398 | 5000 | |
SplitButton | mount | 1905 | 1888 | 5000 | |
Stack | mount | 439 | 424 | 5000 | |
StackWithIntrinsicChildren | mount | 868 | 897 | 5000 | |
StackWithTextChildren | mount | 2852 | 2828 | 5000 | |
SwatchColorPicker | mount | 6566 | 6523 | 5000 | |
TagPicker | mount | 1528 | 1475 | 5000 | |
Text | mount | 382 | 400 | 5000 | |
TextField | mount | 938 | 957 | 5000 | |
ThemeProvider | mount | 887 | 870 | 5000 | |
ThemeProvider | virtual-rerender | 591 | 594 | 5000 | |
ThemeProvider | virtual-rerender-with-unmount | 1298 | 1310 | 5000 | |
Toggle | mount | 610 | 625 | 5000 | |
buttonNative | mount | 190 | 201 | 5000 |
sopranopillow
approved these changes
Oct 3, 2024
mltejera
pushed a commit
to mltejera/office-ui-fabric-react
that referenced
this pull request
Oct 3, 2024
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
Modal
animation timer was not cleared on unmount.New Behavior
Modal
animation timer is cleared on unmount.Related Issue(s)
We don't have a repro case so it's not possible to be certain this fixes the issue but it is potentially a problem regardless.