MCPcopy Index your code
hub / github.com/mobxjs/mobx / copyStaticProperties

Function copyStaticProperties

packages/mobx-react-lite/src/observer.ts:189–195  ·  view source on GitHub ↗
(base: any, target: any)

Source from the content-addressed store, hash-verified

187}
188
189function copyStaticProperties(base: any, target: any) {
190 Object.keys(base).forEach(key => {
191 if (!hoistBlackList[key]) {
192 Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(base, key)!)
193 }
194 })
195}

Callers 1

observerFunction · 0.70

Calls 2

forEachMethod · 0.65
keysMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…