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

Function useStore

src/react/ssr.ts:56–58  ·  view source on GitHub ↗
(store: Store<T>)

Source from the content-addressed store, hash-verified

54}
55/** useStore wrapper for scopes */
56export function useStore<T>(store: Store<T>): T {
57 return useStoreBase(store, getScope(true))
58}
59export function useUnit(shape) {
60 return useUnitBase(shape, getScope(true))
61}

Callers 15

MetaFunction · 0.90
UserFunction · 0.90
TotalFunction · 0.90
FetchingStatusFunction · 0.90
MetaFunction · 0.90
UserFunction · 0.90
TotalFunction · 0.90
FetchingStatusFunction · 0.90
createStoreConsumerFunction · 0.70
connectFunction · 0.70
ScreenFunction · 0.50
DisplayFunction · 0.50

Calls 2

useStoreBaseFunction · 0.90
getScopeFunction · 0.90

Tested by 15

DisplayFunction · 0.40
ErrorDisplayFunction · 0.40
TargetFunction · 0.40
AppFunction · 0.40
ViewFunction · 0.40
MetaFunction · 0.40
AppFailFunction · 0.40
CardsFunction · 0.40
ComponentFunction · 0.40
UserFunction · 0.40
TotalFunction · 0.40
ChatPageFunction · 0.40

Used in the wild real call sites across dependent graphs

searching dependent graphs…