array-spread-later-mutated.js — react Source File
Architecture documentation for array-spread-later-mutated.js, a javascript file in the react codebase.
Entity Profile
Relationship Graph
Source Code
function useBar({arg}) {
/**
* Note that mutableIterator is mutated by the later object spread. Therefore,
* `s.values()` should be memoized within the same block as the object spread.
* In terms of compiler internals, they should have the same reactive scope.
*/
const obj = {};
const s = new Set([obj, 5, 4]);
const mutableIterator = s.values();
const arr = [...mutableIterator];
obj.x = arg;
return arr;
}
export const FIXTURE_ENTRYPOINT = {
fn: useBar,
params: [{arg: 3}],
sequentialRenders: [{arg: 3}, {arg: 3}, {arg: 4}],
};
Domain
Subdomains
Functions
Source
Frequently Asked Questions
What does array-spread-later-mutated.js do?
array-spread-later-mutated.js is a source file in the react codebase, written in javascript. It belongs to the TestingUtilities domain, Fixtures subdomain.
What functions are defined in array-spread-later-mutated.js?
array-spread-later-mutated.js defines 1 function(s): useBar.
Where is array-spread-later-mutated.js in the architecture?
array-spread-later-mutated.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/array-spread-later-mutated.js (domain: TestingUtilities, subdomain: Fixtures, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free