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

Function observerComponent

packages/mobx-react-lite/src/observer.ts:120–122  ·  view source on GitHub ↗
(props: any, ref: React.Ref<TRef>)

Source from the content-addressed store, hash-verified

118 }
119
120 let observerComponent = (props: any, ref: React.Ref<TRef>) => {
121 return useObserver(() => render(props, ref), baseComponentName)
122 }
123
124 // Inherit original name and displayName, see #3438
125 ;(observerComponent as React.FunctionComponent).displayName = baseComponent.displayName

Callers

nothing calls this directly

Calls 1

useObserverFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…