diff --git a/test/development/acceptance-app/hydration-error.test.ts b/test/development/acceptance-app/hydration-error.test.ts index 213c8e1e667ee..ea40ef58e0ff4 100644 --- a/test/development/acceptance-app/hydration-error.test.ts +++ b/test/development/acceptance-app/hydration-error.test.ts @@ -221,4 +221,41 @@ describe('Error overlay for hydration errors', () => { await cleanup() }) + + it('should not show a hydration error when using `useId` in a client component', async () => { + const { cleanup, browser } = await sandbox( + next, + new Map([ + [ + 'app/page.js', + outdent` + 'use client' + + import { useId } from "react" + + export default function Page() { + let id = useId(); + return ( +