From 1a9b309844664e1c8a963cdcc5033551a2bad036 Mon Sep 17 00:00:00 2001 From: Daishi Kato Date: Mon, 7 Aug 2023 08:24:29 +0900 Subject: [PATCH] fix(types): accept undefined equalityFn for the deprecated useStore (#1972) --- 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(