MCPcopy
hub / github.com/facebook/react / preload

Function preload

packages/react-devtools-shared/src/devtools/cache.js:163–169  ·  view source on GitHub ↗
(input: Input)

Source from the content-addressed store, hash-verified

161 },
162
163 preload(input: Input): void {
164 // Prevent access outside of render.
165 readContext(CacheContext);
166
167 const key = hashInput(input);
168 accessResult(resource, fetch, input, key);
169 },
170
171 write(key: Key, value: Value): void {
172 const entriesForResource = getEntriesForResource(resource);

Callers

nothing calls this directly

Calls 2

accessResultFunction · 0.70
readContextFunction · 0.50

Tested by

no test coverage detected