MCPcopy
hub / github.com/YousefED/SyncedStore / createAtom

Function createAtom

packages/yjs-reactive-bindings/src/observableProvider.ts:27–39  ·  view source on GitHub ↗
(
  _name: string,
  _onBecomeObservedHandler?: () => void,
  _onBecomeUnobservedHandler?: () => void
)

Source from the content-addressed store, hash-verified

25}
26
27export 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

Callers 7

observeTextFunction · 0.90
reportSelfAtomFunction · 0.90
reportMapKeyAtomFunction · 0.90
observeXmlFunction · 0.90
reportSelfAtomFunction · 0.90
reportArrayElementAtomFunction · 0.90
reportSelfAtomFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected