import { useRef, useCallback } from "react";
const useReferentiallyStableCallback = (callback) => {
  const ref = useRef(callback);
  ref.current = callback;
  return useCallback((...args) => {
    return ref.current(...args);
  }, []);
};
export { useReferentiallyStableCallback };
//# sourceMappingURL=useReferentiallyStableCallback.js.map
