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>
18 lines
No EOL
530 B
Text
18 lines
No EOL
530 B
Text
'use client';
|
|
import { useEffect, useTransition } from 'react';
|
|
import { dispatcher } from 'next/dist/compiled/next-devtools';
|
|
export const useAppDevRenderingIndicator = ()=>{
|
|
const [isPending, startTransition] = useTransition();
|
|
useEffect(()=>{
|
|
if (isPending) {
|
|
dispatcher.renderingIndicatorShow();
|
|
} else {
|
|
dispatcher.renderingIndicatorHide();
|
|
}
|
|
}, [
|
|
isPending
|
|
]);
|
|
return startTransition;
|
|
};
|
|
|
|
//# sourceMappingURL=use-app-dev-rendering-indicator.js.map |