silverwolf-x/project / packages /next /src /next-devtools /userspace /use-app-dev-rendering-indicator.tsx
silverwolf-x's picture
download
raw
423 Bytes
'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
}

Xet Storage Details

Size:
423 Bytes
·
Xet hash:
4c242af36f7f40cbe9f25ebb54d09edac7c228bd317723c5578e757bdf3974bd

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.