( _name: string, _onBecomeObservedHandler?: () => void, _onBecomeUnobservedHandler?: () => void )
| 25 | } |
| 26 | |
| 27 | export function createAtom( |
| 28 | _name: string, |
| 29 | _onBecomeObservedHandler?: () => void, |
| 30 | _onBecomeUnobservedHandler?: () => void |
| 31 | ): Atom { |
| 32 | if (customCreateAtom) { |
| 33 | return customCreateAtom.apply(null, arguments as any); |
| 34 | } else { |
| 35 | throw new Error( |
| 36 | "observable implementation not provided. Call enableReactiveBindings, enableVueBindings or enableMobxBindings." |
| 37 | ); |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | /** |
| 42 | * Enable MobX integration |
no outgoing calls
no test coverage detected