DIR : /home/kozerus/public_html/cropex/node/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs

/home/kozerus/public_html/cropex/node/node_modules/@radix-ui/react-use-callback-ref/dist

var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });

// 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)), []);
}
__name(useCallbackRef, "useCallbackRef");
export {
  useCallbackRef
};
//# sourceMappingURL=index.mjs.map
//


koh5_pano



Your browser does not support the HTML5 canvas element.


Drag mouse to navigate.

Navigation





17.Aug.2010, Martin Wengenmayer