mirror of
https://github.com/zebrajr/react.git
synced 2025-12-07 12:20:38 +01:00
Summary: To prepare for automatic effect dependencies, some codebases may want to codemod existing useEffect calls with no deps to include an explicit undefined second argument in order to preserve the "run on every render" behavior. In sufficiently large codebases, this may require a temporary enforcement period where all effects provide an explicit dependencies argument. Outside of migration, relying on a component to render can lead to real bugs, especially when working with memoization. |
||
|---|---|---|
| .. | ||
| ESLintRuleExhaustiveDeps-test.js | ||
| ESLintRulesOfHooks-test.js | ||
| ReactCompilerRule-test.ts | ||
| ReactCompilerRuleTypescript-test.ts | ||