Skip to content

Commit

Permalink
fix: remove unnecessary console in isDynamicPostpone (#69457)
Browse files Browse the repository at this point in the history
### What?

Remove `console.log(err)` in `isDynamicPostpone`, I think this should be
a debug console that was accidentally left behind.

### Why?

This will cause meaningless logs to appear in the console when we use
the `unstable_rethrow` API.

Co-authored-by: JJ Kasper <jj@jjsweb.site>
  • Loading branch information
zce and ijjk authored Sep 9, 2024
1 parent cd7949f commit 29454f0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/next/src/server/app-render/dynamic-rendering.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,6 @@ function createPostponeReason(route: string, expression: string) {
}

export function isDynamicPostpone(err: unknown) {
console.log(err)
if (
typeof err === 'object' &&
err !== null &&
Expand Down

0 comments on commit 29454f0

Please sign in to comment.