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

Function stateReader

src/react/apiBase.ts:11–12  ·  view source on GitHub ↗
(store: Store<T>, scope?: Scope)

Source from the content-addressed store, hash-verified

9import {useDeprecate} from './useDeprecate'
10
11const stateReader = <T>(store: Store<T>, scope?: Scope) =>
12 scope ? scope.getState(store) : store.getState()
13const basicUpdateFilter = <T>(upd: T, oldValue: T) => upd !== oldValue
14const keysEqual = (a?: readonly any[], b?: readonly any[]) => {
15 if (!a || !b || a.length !== b.length) return false

Callers 3

useStoreBaseFunction · 0.70
useUnitBaseFunction · 0.70
useStoreMapBaseFunction · 0.70

Calls 1

getStateMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…