Skip to content

Commit ad0bba0

Browse files
authored
fix(types): useSyncExternalStore type (#3437)
Align with react note: the parameter is not used in function body
1 parent 4878fcf commit ad0bba0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jsx/hooks/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ export const useImperativeHandle = <T>(
396396
}
397397

398398
export const useSyncExternalStore = <T>(
399-
subscribe: (callback: (value: T) => void) => () => void,
399+
subscribe: (callback: () => void) => () => void,
400400
getSnapshot: () => T,
401401
getServerSnapshot?: () => T
402402
): T => {

0 commit comments

Comments
 (0)