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

[dev-overlay] Read issueCount from non-async errors array #77821

Merged
merged 1 commit into from
Apr 4, 2025

Conversation

raunofreiberg
Copy link
Member

This PR improves how we read the issueCount property for the Next.js Dev Indicator. Data for runtimeErrors is loaded in batches so the error count also jumps with it, but really we should be able to determine how many errors are going to be displayed before the data loads for all of them.

Before the changes the issue count was very volatile, leading to UI jank as the errors data loads in:

CleanShot.2025-04-04.at.11.15.40.mp4

After the changes we still load the errors in batches, but the issue count is stable:

CleanShot.2025-04-04.at.11.15.25.mp4

@ijjk ijjk added CI approved Approve running CI for fork type: next labels Apr 4, 2025
@ijjk
Copy link
Member

ijjk commented Apr 4, 2025

Tests Passed

@devjiwonchoi devjiwonchoi merged commit 1751db0 into canary Apr 4, 2025
129 of 131 checks passed
@devjiwonchoi devjiwonchoi deleted the rf/derive-error-count branch April 4, 2025 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI approved Approve running CI for fork type: next
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants