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

Function set

compiler/packages/make-read-only-util/src/makeReadOnly.ts:73–77  ·  view source on GitHub ↗
(newVal: unknown)

Source from the content-addressed store, hash-verified

71 return makeReadOnly(savedEntries.get(key)!.savedVal, source);
72 },
73 set(newVal: unknown) {
74 logger('FORGET_MUTATE_IMMUT', source, key, newVal);
75 // update backing cache entry
76 savedEntries.get(key)!.savedVal = newVal;
77 },
78 };
79 if (prop.configurable != null) {
80 proxy.configurable = prop.configurable;

Callers

nothing calls this directly

Calls 2

loggerFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected