setCurrentIndex() — react Function Reference
Architecture documentation for the setCurrentIndex() function in error.todo-repro-missed-memoization-from-inferred-mutation-in-logger.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD a95cf2af_fe78_8d4a_4293_573d496b7a15["setCurrentIndex()"] 2261e7e3_549e_0a67_a11e_c017ee66fccd["error.todo-repro-missed-memoization-from-inferred-mutation-in-logger.js"] a95cf2af_fe78_8d4a_4293_573d496b7a15 -->|defined in| 2261e7e3_549e_0a67_a11e_c017ee66fccd style a95cf2af_fe78_8d4a_4293_573d496b7a15 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/error.todo-repro-missed-memoization-from-inferred-mutation-in-logger.js lines 19–27
(index: number) => {
const object = {
tracking: logData.key,
};
// We infer that this may mutate `object`, which in turn aliases
// data from `logData`, such that `logData` may be mutated.
LogEvent.log(() => object);
setIndex(index);
},
Domain
Subdomains
Source
Frequently Asked Questions
What does setCurrentIndex() do?
setCurrentIndex() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/error.todo-repro-missed-memoization-from-inferred-mutation-in-logger.js.
Where is setCurrentIndex() defined?
setCurrentIndex() is defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/error.todo-repro-missed-memoization-from-inferred-mutation-in-logger.js at line 19.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free