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

Function keysEqual

src/react/apiBase.ts:14–27  ·  view source on GitHub ↗
(a?: readonly any[], b?: readonly any[])

Source from the content-addressed store, hash-verified

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
16
17 let isEqual = true
18
19 for (let i = 0; i < a.length; i++) {
20 if (a[i] !== b[i]) {
21 isEqual = false
22 break
23 }
24 }
25
26 return isEqual
27}
28
29export function useStoreBase<State>(store: Store<State>, scope?: Scope) {
30 useDeprecate(true, 'useStore', 'useUnit')

Callers 1

useStoreMapBaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…