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

Interface IObserverOptions

packages/mobx-react-lite/src/observer.ts:26–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24 * Look at the individual properties for alternatives.
25 */
26export interface IObserverOptions {
27 /**
28 * @deprecated Pass a `React.forwardRef` component to observer instead of using the options object
29 * e.g. `observer(React.forwardRef(fn))`
30 */
31 readonly forwardRef?: boolean
32}
33
34export function observer<P extends object, TRef = {}>(
35 baseComponent: React.ForwardRefRenderFunction<TRef, P>,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…