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

Function getEnhancerFromAnnotation

packages/mobx/src/api/observable.ts:97–99  ·  view source on GitHub ↗
(annotation?: Annotation)

Source from the content-addressed store, hash-verified

95}
96
97export function getEnhancerFromAnnotation(annotation?: Annotation): IEnhancer<any> {
98 return !annotation ? deepEnhancer : annotation.options_?.enhancer ?? deepEnhancer
99}
100
101/**
102 * Turns an object, array or function into a reactive structure.

Callers 1

getEnhancerFromOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…