Skip to content

Commit

Permalink
update ppr snapshot and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Oct 24, 2024
1 parent 0b38fb4 commit 6a3e7c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export function enqueueConsecutiveDedupedError(
) {
const isFront = isHydrationError(error)
const previousError = isFront ? queue[0] : queue[queue.length - 1]
// Only check message to see if it's the same error, as message is representative display in the console.
// Compare the error stack to dedupe the consecutive errors
if (previousError && previousError.stack === error.stack) {
return
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ describe('app-dir - capture-console-error', () => {
} else if (isReactExperimental) {
expect(result).toMatchInlineSnapshot(`
{
"callStacks": "button
app/browser/event/page.js (5:6)",
"callStacks": null,
"count": 1,
"description": "trigger an console <error>",
"source": "app/browser/event/page.js (7:17) @ error
Expand Down

0 comments on commit 6a3e7c6

Please sign in to comment.