Repository navigation
fix(react-tooltip): show tooltip correctly under strict mode - #35282
Merged
Victor Genaev (mainframev) merged 2 commits intoOct 7, 2025
Merged
Victor Genaev (mainframev) merged 2 commits into
Victor Genaev (mainframev) merged 2 commits into
Conversation
Victor Genaev (mainframev)
force-pushed
the
fix/tooltip-strict-mode-timeout
branch
from
October 6, 2025 11:09
2a0a929 to
573260d
Compare
📊 Bundle size reportUnchanged fixtures
|
|
Pull request demo site: URL |
Victor Genaev (mainframev)
force-pushed
the
fix/tooltip-strict-mode-timeout
branch
from
October 6, 2025 11:32
573260d to
b13e106
Compare
Victor Genaev (mainframev)
marked this pull request as ready for review
October 7, 2025 10:28
Contributor
|
"exclude": [
+ "**/*.cy.ts",
+ "**/*.cy.tsx"
], |
Martin Hochel (Hotell)
approved these changes
Oct 7, 2025
Victor Genaev (mainframev)
force-pushed
the
fix/tooltip-strict-mode-timeout
branch
from
October 7, 2025 11:52
88734da to
eb49061
Compare
Contributor
|
Victor Genaev (mainframev)
force-pushed
the
fix/tooltip-strict-mode-timeout
branch
from
October 7, 2025 15:31
eb49061 to
7677575
Compare
Alexander Katrukhin (pixel-perfectionist)
pushed a commit
to pixel-perfectionist/fluentui
that referenced
this pull request
Oct 8, 2025
Tudor Popa (tudorpopams)
pushed a commit
to tudorpopams/fluentui
that referenced
this pull request
Apr 14, 2026
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.

Alternative approach to #34331
Previous Behavior
Tooltip uses a custom utilitiy useTimeout (useBrowserTimer) to manage the timer that delays showing the Tooltip. This utility creates the timer through an imperative function, but clears the timer in a useEffect cleanup function. This results in the tooltip never being shown if it is unmounted and remounted after the Tooltip was triggered but before it was shown. This can happen in StrictMode for a component that receives initial focus when it is created, such as a MenuItem.
New Behavior
Tooltip uses it's inner
useTooltipTimeouthook, which is based on previoususeTimeouthook fromreact-utilitiesimplementation with a additional check for a real unmount, making this hook StrictMode aware.Related Issue(s)