useInputValue() — react Function Reference
Architecture documentation for the useInputValue() function in error.repro-preserve-memoization-inner-destructured-value-mistaken-as-dependency-mutated-dep.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 31f90894_389a_c6d1_cda5_ced00678ef1c["useInputValue()"] d98166bd_a159_243f_5d98_3a6af22d0111["error.repro-preserve-memoization-inner-destructured-value-mistaken-as-dependency-mutated-dep.js"] 31f90894_389a_c6d1_cda5_ced00678ef1c -->|defined in| d98166bd_a159_243f_5d98_3a6af22d0111 d3e4a697_4fe9_ad74_7c5a_23bea254d945["Component()"] d3e4a697_4fe9_ad74_7c5a_23bea254d945 -->|calls| 31f90894_389a_c6d1_cda5_ced00678ef1c style 31f90894_389a_c6d1_cda5_ced00678ef1c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/error.repro-preserve-memoization-inner-destructured-value-mistaken-as-dependency-mutated-dep.js lines 16–27
function useInputValue(input) {
// Conflate the `identity(input, x)` call with something outside the useMemo,
// to try and break memoization of `value`. This gets correctly flagged since
// the dependency is being mutated
let x = {};
useHook();
const object = React.useMemo(() => {
const {value} = identity(input, x);
return {value};
}, [input, x]);
return object;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does useInputValue() do?
useInputValue() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/error.repro-preserve-memoization-inner-destructured-value-mistaken-as-dependency-mutated-dep.js.
Where is useInputValue() defined?
useInputValue() is defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/error.repro-preserve-memoization-inner-destructured-value-mistaken-as-dependency-mutated-dep.js at line 16.
What calls useInputValue()?
useInputValue() is called by 1 function(s): Component.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free