Skip to content

Commit

Permalink
Update packages/react/src/utils/hooks/useManagedRef.ts
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
Yonom and coderabbitai[bot] authored Dec 15, 2024
1 parent a6abcb3 commit 9eae0db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/utils/hooks/useManagedRef.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useCallback, useRef } from "react";
export const useManagedRef = <TNode>(
callback: (node: TNode) => (() => void) | void,
) => {
const cleanupRef = useRef<(() => void) | void>(undefined);
const cleanupRef = useRef<(() => void) | undefined>(undefined);

const ref = useCallback(
(el: TNode | null) => {
Expand Down

0 comments on commit 9eae0db

Please sign in to comment.