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

Function createStoreConsumer

src/react/ssr.ts:31–37  ·  view source on GitHub ↗
(store: any)

Source from the content-addressed store, hash-verified

29}
30
31export function createStoreConsumer(store: any) {
32 deprecate('createStoreConsumer', 'useUnit')
33 return (props: any) => {
34 const state = useStore(store)
35 return props.children(state)
36 }
37}
38
39export const createComponent = (shape: any) => throwError('not implemented')
40

Callers 1

Calls 2

deprecateFunction · 0.90
useStoreFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…