diff --git a/packages/react/src/utils/hooks/useManagedRef.ts b/packages/react/src/utils/hooks/useManagedRef.ts index 83e4c660b..6b2643aed 100644 --- a/packages/react/src/utils/hooks/useManagedRef.ts +++ b/packages/react/src/utils/hooks/useManagedRef.ts @@ -3,7 +3,7 @@ import { useCallback, useRef } from "react"; export const useManagedRef = ( callback: (node: TNode) => (() => void) | void, ) => { - const cleanupRef = useRef<(() => void) | void>(undefined); + const cleanupRef = useRef<(() => void) | undefined>(undefined); const ref = useCallback( (el: TNode | null) => {