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

Change the hover handler upon source ID changing #6381

Merged
merged 1 commit into from Apr 14, 2022

Conversation

jcmorrow
Copy link
Contributor

@jcmorrow jcmorrow commented Apr 13, 2022

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 old sourceId when retrieving hitCounts. This makes sure that if source.id has changed we will redefine the setHoveredLineNumber function.

Closes #6380

@vercel
Copy link

vercel bot commented Apr 13, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/recordreplay/devtools/DhkrgpxtmS91DyKWFX5oZirzvNZm
✅ Preview: https://devtools-git-jm-toggle-files-hit-counts-recordreplay.vercel.app

See
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 old
sourceId when retrieving hitCounts. This makes sure that if source.id
has changed we will redefine the setHoveredLineNumber function.

Closes #6380
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants