-
560c8be: Added
allowedServerHooks
option. Hooks specified here will not throw an error in files that do not have the'use client'
directive.Example:
{ "rules": { "react-server-components/use-client": [ "error", { "allowedServerHooks": ["useTranslation"] } ] } }
- c1f4c62: Allow
useId
in server and shared components.
- 644f71d: Simplify creation of browser-only globals reference.
- 30770a0: Error on class components
- 8f42b00: Fixed detection of 'use client' directive around comments in file header.