mirror of
https://github.com/zebrajr/react.git
synced 2025-12-07 12:20:38 +01:00
Two additional validations for useMemo: * Disallow reassigning to values declared outside the useMemo callback (always on) * Disallow unused useMemo calls (part of the validateNoVoidUseMemo feature flag, which in turn is off by default) We should probably enable this flag though! --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/34868). * #34855 * #34882 * __->__ #34868 |
||
|---|---|---|
| .. | ||
| ImpureFunctionCallsRule-test.ts | ||
| InvalidHooksRule-test.ts | ||
| NoAmbiguousJsxRule-test.ts | ||
| NoCapitalizedCallsRule-test.ts | ||
| NoRefAccessInRender-tests.ts | ||
| PluginTest-test.ts | ||
| ReactCompilerRuleTypescript-test.ts | ||
| shared-utils.ts | ||