We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 074262b commit f770793Copy full SHA for f770793
packages/next/src/next-devtools/userspace/app/forward-logs.ts
@@ -49,6 +49,10 @@ class ClientFileLogger {
49
return String(arg)
50
if (arg === null) return 'null'
51
if (arg === undefined) return 'undefined'
52
+ // Handle DOM nodes - only log the tag name to avoid React proxied elements
53
+ if (arg instanceof Element) {
54
+ return `<${arg.tagName.toLowerCase()}>`
55
+ }
56
return safeStringifyWithDepth(arg)
57
})
58
.join(' ')
0 commit comments