Skip to content

Commit 9a9abc9

Browse files
committed
Prevent useId conflicts
1 parent 5cfc5b5 commit 9a9abc9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/next/src/client/components/react-dev-overlay/app/app-dev-overlay.browser.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,9 @@ export function renderAppDevOverlay(
217217
script.appendChild(container)
218218
document.body.appendChild(script)
219219

220-
const root = createRoot(container)
220+
const root = createRoot(container, {
221+
identifierPrefix: 'ndt-',
222+
})
221223

222224
startTransition(() => {
223225
// TODO: Dedicated error boundary or root error callbacks?

0 commit comments

Comments
 (0)