Skip to content

Commit

Permalink
fix(types): useSyncExternalStore type (#3437)
Browse files Browse the repository at this point in the history
Align with react
note: the parameter is not used in function body
  • Loading branch information
codehz authored Sep 23, 2024
1 parent 4878fcf commit ad0bba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jsx/hooks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit ad0bba0

Please sign in to comment.