fix(tooltiphost): Show V8 tooltips correctly in react 18 strict mode#28232
Merged
Conversation
Asset size changes
Baseline commit: d93cb0b8cb80f56e753ad18c645eeb84a9c10256 (build) |
Collaborator
📊 Bundle size reportUnchanged fixtures
|
|
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. |
Collaborator
🕵 fluentuiv8 No visual regressions between this PR and main |
Collaborator
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| BaseButton | mount | 618 | 628 | 5000 | |
| Breadcrumb | mount | 1655 | 1668 | 1000 | |
| Checkbox | mount | 1673 | 1658 | 5000 | |
| CheckboxBase | mount | 1469 | 1456 | 5000 | |
| ChoiceGroup | mount | 2934 | 3001 | 5000 | |
| ComboBox | mount | 635 | 660 | 1000 | |
| CommandBar | mount | 6202 | 6071 | 1000 | |
| ContextualMenu | mount | 11279 | 11524 | 1000 | |
| DefaultButton | mount | 742 | 753 | 5000 | |
| DetailsRow | mount | 2208 | 2192 | 5000 | |
| DetailsRowFast | mount | 2210 | 2186 | 5000 | |
| DetailsRowNoStyles | mount | 1990 | 1979 | 5000 | |
| Dialog | mount | 2585 | 2742 | 1000 | |
| DocumentCardTitle | mount | 221 | 215 | 1000 | |
| Dropdown | mount | 1971 | 1931 | 5000 | |
| FocusTrapZone | mount | 1121 | 1133 | 5000 | |
| FocusZone | mount | 1050 | 1053 | 5000 | |
| GroupedList | mount | 41315 | 41673 | 2 | |
| GroupedList | virtual-rerender | 17855 | 19898 | 2 | |
| GroupedList | virtual-rerender-with-unmount | 50436 | 50029 | 2 | |
| GroupedListV2 | mount | 218 | 231 | 2 | |
| GroupedListV2 | virtual-rerender | 218 | 209 | 2 | |
| GroupedListV2 | virtual-rerender-with-unmount | 221 | 225 | 2 | |
| IconButton | mount | 1100 | 1048 | 5000 | |
| Label | mount | 341 | 323 | 5000 | |
| Layer | mount | 2673 | 2662 | 5000 | |
| Link | mount | 390 | 393 | 5000 | |
| MenuButton | mount | 949 | 938 | 5000 | |
| MessageBar | mount | 21075 | 21105 | 5000 | |
| Nav | mount | 1950 | 1929 | 1000 | |
| OverflowSet | mount | 757 | 777 | 5000 | |
| Panel | mount | 1826 | 1771 | 1000 | |
| Persona | mount | 725 | 757 | 1000 | |
| Pivot | mount | 871 | 868 | 1000 | |
| PrimaryButton | mount | 825 | 854 | 5000 | |
| Rating | mount | 4635 | 4613 | 5000 | |
| SearchBox | mount | 902 | 889 | 5000 | |
| Shimmer | mount | 1873 | 1867 | 5000 | |
| Slider | mount | 1349 | 1322 | 5000 | |
| SpinButton | mount | 2950 | 2873 | 5000 | |
| Spinner | mount | 380 | 385 | 5000 | |
| SplitButton | mount | 1862 | 1868 | 5000 | |
| Stack | mount | 418 | 417 | 5000 | |
| StackWithIntrinsicChildren | mount | 852 | 856 | 5000 | |
| StackWithTextChildren | mount | 2560 | 2573 | 5000 | |
| SwatchColorPicker | mount | 6202 | 6053 | 5000 | |
| TagPicker | mount | 1443 | 1433 | 5000 | |
| Text | mount | 377 | 376 | 5000 | |
| TextField | mount | 948 | 945 | 5000 | |
| ThemeProvider | mount | 813 | 833 | 5000 | |
| ThemeProvider | virtual-rerender | 577 | 594 | 5000 | |
| ThemeProvider | virtual-rerender-with-unmount | 1265 | 1270 | 5000 | |
| Toggle | mount | 592 | 608 | 5000 | |
| buttonNative | mount | 191 | 188 | 5000 |
Contributor
|
/azp run |
|
Azure Pipelines successfully started running 4 pipeline(s). |
Contributor
Author
|
@behowell Thanks for reviewing. Is there anything waiting on me in order to merge this or is it just a case of waiting until you guys are ready? I have another very similar PR open for pickers, too. |
Contributor
|
Apologies, this fell off my radar. I'll update the branch and re-run the builds to make sure everything is still green, then I can merge it. |
Contributor
|
/azp run |
|
Azure Pipelines successfully started running 4 pipeline(s). |
Collaborator
🕵 fluentuiv8 No visual regressions between this PR and main |
2 tasks
robertpenner
pushed a commit
to robertpenner/fluentui
that referenced
this pull request
Apr 11, 2024
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
In react 18, strict mode, tooltips are not shown when hovering over the
TooltipHost. The reason is that when mounting, the component instance is:At this point async operations do nothing because the async object is still disposed. So any tooltip show delay means the toggle never triggers.
New Behavior
Asyncobject is recreated on mount rather than constructor.Tooltips show up on hover
Related Issue(s)