You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be helpful to have a rule that enforces to set "use client" when inside the file/module a React hook is used.
This would help prevent cases where a component that was only imported by a "use client" one starts being imported also by a "use server" one and accidentally breaks the page.
I guess the existing hook-detection logic the library uses for other rules would suffice.
The text was updated successfully, but these errors were encountered:
It would be helpful to have a rule that enforces to set
"use client"
when inside the file/module a React hook is used.This would help prevent cases where a component that was only imported by a
"use client"
one starts being imported also by a"use server"
one and accidentally breaks the page.I guess the existing hook-detection logic the library uses for other rules would suffice.
The text was updated successfully, but these errors were encountered: