mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
0bd116abe9
Fixes #25049. Register `DeclareContext` bindings as locals before analyzing nested functions so local self-references are not treated as missing memo dependencies. Skip exhaustive dependency validation when both modes are disabled. Validation: `just ready` AI assistance was used to investigate and implement this change.
9 lines
158 B
JavaScript
9 lines
158 B
JavaScript
// @validateExhaustiveMemoizationDependencies
|
|
function Component() {
|
|
useCallback(() => {
|
|
const bar = () => {
|
|
console.log(bar);
|
|
};
|
|
}, []);
|
|
}
|