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

Function get

compiler/packages/make-read-only-util/src/makeReadOnly.ts:69–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67 ) {
68 const proxy: PropertyDescriptor & {get(): unknown} = {
69 get() {
70 // read from backing cache entry
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

Callers

nothing calls this directly

Calls 2

makeReadOnlyFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected