From ad0bba09642b6c323084f265e771f802ae742200 Mon Sep 17 00:00:00 2001 From: Neko Hz Date: Mon, 23 Sep 2024 16:18:37 +0800 Subject: [PATCH] fix(types): useSyncExternalStore type (#3437) Align with react note: the parameter is not used in function body --- src/jsx/hooks/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jsx/hooks/index.ts b/src/jsx/hooks/index.ts index c6b8294c..0a2eee79 100644 --- a/src/jsx/hooks/index.ts +++ b/src/jsx/hooks/index.ts @@ -396,7 +396,7 @@ export const useImperativeHandle = ( } export const useSyncExternalStore = ( - subscribe: (callback: (value: T) => void) => () => void, + subscribe: (callback: () => void) => () => void, getSnapshot: () => T, getServerSnapshot?: () => T ): T => {