MCPcopy Create free account
hub / github.com/formkit/formkit / getReactiveStore

Function getReactiveStore

packages/react/src/reactiveStore.ts:17–22  ·  view source on GitHub ↗
(
  target: unknown
)

Source from the content-addressed store, hash-verified

15}
16
17export function getReactiveStore(
18 target: unknown
19): FormKitReactiveStore | undefined {
20 if (!isObject(target)) return undefined
21 return target[formKitReactiveStoreSymbol] as FormKitReactiveStore | undefined
22}
23
24export function ensureReactiveStore(target: unknown): FormKitReactiveStore {
25 if (!isObject(target)) {

Callers 5

ensureReactiveStoreFunction · 0.85
notifyReactiveStoreFunction · 0.85
clearReactiveStoreFunction · 0.85
subscribeReactiveStoreFunction · 0.85
getSnapshotFunction · 0.85

Calls 1

isObjectFunction · 0.70

Tested by

no test coverage detected