mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
fix(types): accept undefined equalityFn for the deprecated useStore (#1972)
This commit is contained in:
parent
19d3df22a6
commit
1a9b309844
@ -39,7 +39,7 @@ export function useStore<S extends WithReact<StoreApi<unknown>>, U>(
|
||||
export function useStore<S extends WithReact<StoreApi<unknown>>, U>(
|
||||
api: S,
|
||||
selector: (state: ExtractState<S>) => U,
|
||||
equalityFn: (a: U, b: U) => boolean
|
||||
equalityFn: ((a: U, b: U) => boolean) | undefined
|
||||
): U
|
||||
|
||||
export function useStore<TState, StateSlice>(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user