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

fix error overlay sometimes now showing #3331

Merged
merged 2 commits into from Jan 19, 2023

Conversation

ForsakenHarmony
Copy link
Member

No description provided.

@ForsakenHarmony ForsakenHarmony requested a review from a team as a code owner January 16, 2023 17:17
@vercel
Copy link

vercel bot commented Jan 16, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
examples-basic-web 🔄 Building (Inspect) Jan 16, 2023 at 5:47PM (UTC)
examples-nonmonorepo 🔄 Building (Inspect) Jan 16, 2023 at 5:47PM (UTC)
examples-svelte-web 🔄 Building (Inspect) Jan 16, 2023 at 5:47PM (UTC)
turbo-site ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 16, 2023 at 5:47PM (UTC)
6 Ignored Deployments
Name Status Preview Comments Updated
examples-cra-web ⬜️ Ignored (Inspect) Jan 16, 2023 at 5:47PM (UTC)
examples-designsystem-docs ⬜️ Ignored (Inspect) Jan 16, 2023 at 5:47PM (UTC)
examples-kitchensink-blog ⬜️ Ignored (Inspect) Jan 16, 2023 at 5:47PM (UTC)
examples-native-web ⬜️ Ignored (Inspect) Jan 16, 2023 at 5:47PM (UTC)
examples-tailwind-web ⬜️ Ignored (Inspect) Jan 16, 2023 at 5:47PM (UTC)
turbo-vite-web ⬜️ Ignored (Inspect) Jan 16, 2023 at 5:47PM (UTC)

@ForsakenHarmony
Copy link
Member Author

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@@ -116,6 +116,15 @@ function aggregateUpdates(
const key = resourceKey(msg.resource);
const aggregated = chunksWithUpdates.get(key);

if (msg.type === "issues" && aggregated == null && hasIssues) {
// add an empty record to make sure we don't call `onBuildOk`
chunksWithUpdates.set(key, {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We check if there are entries in the map below, so even if we have no updates we insert an empty record to make sure it doesn't think everything is fine

@github-actions
Copy link
Contributor

Benchmark for b9943da

Click to view benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 7889.85µs ± 44.00µs 7853.89µs ± 64.64µs -0.46%
bench_hmr_to_commit/Turbopack RCC/1000 modules 8186.25µs ± 46.16µs 8182.66µs ± 87.67µs -0.04%
bench_hmr_to_commit/Turbopack RSC/1000 modules 457.66ms ± 2.23ms 455.42ms ± 2.61ms -0.49%
bench_hmr_to_commit/Turbopack SSR/1000 modules 7969.68µs ± 67.26µs 7954.41µs ± 71.30µs -0.19%
bench_hmr_to_eval/Turbopack CSR/1000 modules 6896.84µs ± 51.44µs 6970.50µs ± 63.00µs +1.07%
bench_hmr_to_eval/Turbopack RCC/1000 modules 7078.00µs ± 63.15µs 7153.42µs ± 48.90µs +1.07%
bench_hmr_to_eval/Turbopack SSR/1000 modules 7052.13µs ± 28.34µs 7140.90µs ± 61.22µs +1.26%
bench_hydration/Turbopack RCC/1000 modules 3240.05ms ± 7.99ms 3250.43ms ± 7.77ms +0.32%
bench_hydration/Turbopack RSC/1000 modules 2765.03ms ± 3.79ms 2773.50ms ± 3.44ms +0.31%
bench_hydration/Turbopack SSR/1000 modules 2584.08ms ± 11.95ms 2592.18ms ± 7.91ms +0.31%
bench_startup/Turbopack CSR/1000 modules 1603.91ms ± 4.88ms 1612.85ms ± 4.89ms +0.56%
bench_startup/Turbopack RCC/1000 modules 2442.07ms ± 6.47ms 2435.12ms ± 6.11ms -0.28%
bench_startup/Turbopack RSC/1000 modules 2332.00ms ± 5.29ms 2332.77ms ± 7.40ms +0.03%
bench_startup/Turbopack SSR/1000 modules 2006.21ms ± 3.54ms 1997.38ms ± 4.81ms -0.44%

@github-actions
Copy link
Contributor

🟢 CI successful 🟢

Thanks

@@ -116,6 +116,15 @@ function aggregateUpdates(
const key = resourceKey(msg.resource);
const aggregated = chunksWithUpdates.get(key);

if (msg.type === "issues" && aggregated == null && hasIssues) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Looks like this can be merged with the if statements below?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could be, but imo makes it harder to read

@wbinnssmith
Copy link
Member

Any chance this fixes WEB-439?

@ForsakenHarmony ForsakenHarmony merged commit 37b5840 into main Jan 19, 2023
@ForsakenHarmony ForsakenHarmony deleted the hrmny/web-419-fallback-error-overlay-not-shown branch January 19, 2023 01:15
@ForsakenHarmony
Copy link
Member Author

@wbinnssmith it might

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants