Skip to content

Commit 20064c1

Browse files
committed
Prevent useId conflicts
1 parent 814800c commit 20064c1

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
@@ -216,7 +216,9 @@ export function renderAppDevOverlay(
216216
script.appendChild(container)
217217
document.body.appendChild(script)
218218

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

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

0 commit comments

Comments
 (0)