Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
13 lines
385 B
Text
13 lines
385 B
Text
// packages/react/use-callback-ref/src/useCallbackRef.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), []);
|
|
}
|
|
export {
|
|
useCallbackRef
|
|
};
|
|
//# sourceMappingURL=index.mjs.map
|