MCPcopy Create free account
hub / github.com/effector/effector / useStoreMap

Function useStoreMap

src/solid/scope.ts:38–52  ·  view source on GitHub ↗
(configOrStore: any, separateFn: any)

Source from the content-addressed store, hash-verified

36}
37/** useStoreMap wrapper for scopes */
38export function useStoreMap(configOrStore: any, separateFn: any) {
39 const scope = getScope(true)
40 if (separateFn) return useStoreMapBase([configOrStore, separateFn], scope)
41 return useStoreMapBase(
42 [
43 {
44 store: configOrStore.store,
45 keys: configOrStore.keys,
46 fn: configOrStore.fn,
47 updateFilter: configOrStore.updateFilter,
48 },
49 ],
50 scope,
51 )
52}

Callers 8

CardFunction · 0.90
ViewFunction · 0.90
CountFunction · 0.90
AppFailFunction · 0.90
CardFunction · 0.50
ViewFunction · 0.50
CardFunction · 0.50
ViewFunction · 0.50

Calls 2

getScopeFunction · 0.90
useStoreMapBaseFunction · 0.90

Tested by 8

CardFunction · 0.72
ViewFunction · 0.72
CountFunction · 0.72
AppFailFunction · 0.72
CardFunction · 0.40
ViewFunction · 0.40
CardFunction · 0.40
ViewFunction · 0.40

Used in the wild real call sites across dependent graphs

searching dependent graphs…