MCPcopy
hub / github.com/mobxjs/mobx / IObserverProps

Interface IObserverProps

packages/mobx-react-lite/src/ObserverComponent.ts:5–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3// TODO: this type could be improved in the next major release:
4// type IObserverProps = { children: () => React.ReactNode, render?: never } | { children?: never, render: () => React.ReactNode }
5interface IObserverProps {
6 children?(): React.ReactElement | null
7 render?(): React.ReactElement | null
8}
9
10function ObserverComponent({ children, render }: IObserverProps) {
11 if (children && render) {

Callers 5

compile-ts.tsxFile · 0.65
cycles.jsFile · 0.65
cycles.jsFile · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…