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

Function useStoreMap

src/react/ssr.ts:67–81  ·  view source on GitHub ↗
(configOrStore: any, separateFn: any)

Source from the content-addressed store, hash-verified

65}
66/** useStoreMap wrapper for scopes */
67export function useStoreMap(configOrStore: any, separateFn: any) {
68 const scope = getScope(true)
69 if (separateFn) return useStoreMapBase([configOrStore, separateFn], scope)
70 return useStoreMapBase(
71 [
72 {
73 store: configOrStore.store,
74 keys: configOrStore.keys,
75 fn: configOrStore.fn,
76 updateFilter: configOrStore.updateFilter,
77 },
78 ],
79 scope,
80 )
81}
82
83/**
84bind event to scope

Callers 11

UserListFunction · 0.90
UserListFunction · 0.90
CardFunction · 0.50
ViewFunction · 0.50
AppFunction · 0.50
AppFailFunction · 0.50
UserPropertyFunction · 0.50
FooFunction · 0.50

Calls 2

getScopeFunction · 0.90
useStoreMapBaseFunction · 0.90

Tested by 6

CardFunction · 0.40
ViewFunction · 0.40
AppFunction · 0.40
AppFailFunction · 0.40
UserPropertyFunction · 0.40
FooFunction · 0.40

Used in the wild real call sites across dependent graphs

searching dependent graphs…