[feat] New rule hooks-extra/no-circular-effect
to detect circular set
(and dispatch
) functions and deps patterns in useEffect
like hooks
#755
Labels
Type: New Rule
Introduce a new rule
Milestone
Describe the problem
Describe the solution you'd like
Merge all
useEffect
like hooks within the same component or custom hook, then detect the calls to set and dispatch functions and the dependencies.Alternatives considered
Using directed graph to collect and detect circular between
useEffect
like hooks within the same component or custom hook.Additional context
#745 (comment)
https://x.com/dan_abramov2/status/1825697422494019851
https://x.com/fraser_drops/status/1825953286786265424
https://x.com/fraser_drops/status/1582408358883397633
The text was updated successfully, but these errors were encountered: