UEA-PRODEM

This commit is contained in:
2026-06-10 12:14:46 -03:00
parent f54126b9d8
commit 9947565694
5319 changed files with 148520 additions and 129332 deletions
+2 -2
View File
@@ -1,11 +1,11 @@
// packages/react/use-callback-ref/src/use-callback-ref.tsx
// src/use-callback-ref.tsx
import * as React from "react";
function useCallbackRef(callback) {
const callbackRef = React.useRef(callback);
React.useEffect(() => {
callbackRef.current = callback;
});
return React.useMemo(() => (...args) => callbackRef.current?.(...args), []);
return React.useMemo(() => ((...args) => callbackRef.current?.(...args)), []);
}
export {
useCallbackRef