Skip to content

Commit

Permalink
only list mergeRefs as dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinMalfait committed Oct 8, 2024
1 parent 3e6ec6d commit 5a9afd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@headlessui-react/src/utils/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function useRender() {

return useCallback(
(args: Parameters<typeof render>[0]) => render({ mergeRefs, ...args }),
[render, mergeRefs]
[mergeRefs]
) as typeof render
}

Expand Down

0 comments on commit 5a9afd8

Please sign in to comment.