0
0
mirror of https://github.com/honojs/hono.git synced 2024-11-22 02:27:49 +01:00

fix(types): useSyncExternalStore type (#3437)

Align with react
note: the parameter is not used in function body
This commit is contained in:
Neko Hz 2024-09-23 16:18:37 +08:00 committed by GitHub
parent 4878fcf57c
commit ad0bba0964
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -396,7 +396,7 @@ export const useImperativeHandle = <T>(
}
export const useSyncExternalStore = <T>(
subscribe: (callback: (value: T) => void) => () => void,
subscribe: (callback: () => void) => () => void,
getSnapshot: () => T,
getServerSnapshot?: () => T
): T => {