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

Function createStoreConsumer

src/react/createStoreConsumer.ts:7–12  ·  view source on GitHub ↗
(
  store: Store<State>,
)

Source from the content-addressed store, hash-verified

5import {deprecate} from './deprecate'
6
7export function createStoreConsumer<State>(
8 store: Store<State>,
9): StoreConsumer<State> {
10 deprecate('createStoreConsumer', 'useUnit')
11 return createComponent(store, ({children}, state) => children(state))
12}

Callers

nothing calls this directly

Calls 2

deprecateFunction · 0.90
createComponentFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…