Skip to content
D
Documentation

zustand/shallow

reference
1 min readUpdated

Part of the zustand package: install zustand and import these from zustand/shallow.

Functions

shallow

ts
function shallow<T>(valueA: T, valueB: T): boolean

useShallow

ts
function useShallow<S, U>(selector: (state: S) => U): (state: S) => U

Was this page helpful?