Skip to content

Commit eb79cda

Browse files
committed
update ppr snapshot and comment
1 parent 5fe413d commit eb79cda

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/next/src/client/components/react-dev-overlay/internal/helpers/enqueue-client-error.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export function enqueueConsecutiveDedupedError(
77
) {
88
const isFront = isHydrationError(error)
99
const previousError = isFront ? queue[0] : queue[queue.length - 1]
10-
// Only check message to see if it's the same error, as message is representative display in the console.
10+
// Compare the error stack to dedupe the consecutive errors
1111
if (previousError && previousError.stack === error.stack) {
1212
return
1313
}

test/development/app-dir/capture-console-error/capture-console-error.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ describe('app-dir - capture-console-error', () => {
5858
} else if (isReactExperimental) {
5959
expect(result).toMatchInlineSnapshot(`
6060
{
61-
"callStacks": "button
62-
app/browser/event/page.js (5:6)",
61+
"callStacks": null,
6362
"count": 1,
6463
"description": "trigger an console <error>",
6564
"source": "app/browser/event/page.js (7:17) @ error

0 commit comments

Comments
 (0)