MCPcopy Index your code
hub / github.com/react/react / write

Function write

packages/react-devtools-shared/src/devtools/cache.js:171–181  ·  view source on GitHub ↗
(key: Key, value: Value)

Source from the content-addressed store, hash-verified

169 },
170
171 write(key: Key, value: Value): void {
172 const entriesForResource = getEntriesForResource(resource);
173
174 const fulfilledThenable: FulfilledThenable<Value> = (Promise.resolve(
175 value,
176 ): any);
177 fulfilledThenable.status = 'fulfilled';
178 fulfilledThenable.value = value;
179
180 entriesForResource.set(key, fulfilledThenable);
181 },
182 };
183
184 resourceConfigs.set(resource, config);

Callers

nothing calls this directly

Calls 2

getEntriesForResourceFunction · 0.85
setMethod · 0.80

Tested by

no test coverage detected