Change the hover handler upon source ID changing #6381
Merged
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.
See https://app.replay.io/recording/hit-counts-stuck-loading--12da5073-0dde-41b2-a3ac-9ed2d5b4eb4f?point=101574307311961095129412067018145992&time=38370.53571428572&hasFrames=true# for some detailed diagnosis. Basically: if the
LineNumberTooltip
does not remount between file changes, then we continue to request the oldsourceId
when retrieving hitCounts. This makes sure that ifsource.id
has changed we will redefine thesetHoveredLineNumber
function.Closes #6380