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>
7 lines
297 B
Text
7 lines
297 B
Text
/**
|
|
* A custom hook that converts a callback to a ref to avoid triggering re-renders when passed as a
|
|
* prop or avoid re-executing effects when passed as a dependency
|
|
*/
|
|
declare function useCallbackRef<T extends (...args: any[]) => any>(callback: T | undefined): T;
|
|
|
|
export { useCallbackRef };
|