correctness.framework

Avoid server/client boundary leaks in Next.js

Server components should not use browser-only APIs or client-only hooks without an explicit client boundary.

#Metadata

#Why it matters

Browser globals and client-only hooks break server rendering boundaries and make component intent unclear.

#Remediation

Add `'use client'` or move the code into a client component or hook.

#Repository path

The generated metadata points to critiq-rules/libs/rules/catalog/rules/typescript/ts.next.no-server-client-boundary-leaks.rule.yaml.