From a4e2923c50805423b156d1fd1a300d291f1a3a14 Mon Sep 17 00:00:00 2001 From: daishi Date: Fri, 4 Aug 2023 08:44:32 +0900 Subject: [PATCH] fix(types): accept undefined equalityFn for the deprecated useStore --- src/react.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/react.ts b/src/react.ts index 953504006f..714c9c498f 100644 --- a/src/react.ts +++ b/src/react.ts @@ -39,7 +39,7 @@ export function useStore>, U>( export function useStore>, U>( api: S, selector: (state: ExtractState) => U, - equalityFn: (a: U, b: U) => boolean + equalityFn: ((a: U, b: U) => boolean) | undefined ): U export function useStore(