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

Function stateReader

src/solid/lib/base.ts:15–16  ·  view source on GitHub ↗
(store: Store<T>, scope?: Scope)

Source from the content-addressed store, hash-verified

13import {Accessor, batch, createMemo, createSignal, onCleanup} from 'solid-js'
14
15const stateReader = <T>(store: Store<T>, scope?: Scope) =>
16 scope ? scope.getState(store) : store.getState()
17const basicUpdateFilter = <T>(upd: T, oldValue: T) => upd !== oldValue
18
19export function useUnitBase<Shape extends {[key: any]: Unit<any>}>(

Callers 2

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…