Buckets:
| import { useEffect } from 'react' | |
| import { | |
| onLCP, | |
| onFID, | |
| onCLS, | |
| onINP, | |
| onFCP, | |
| onTTFB, | |
| } from 'next/dist/compiled/web-vitals' | |
| import type { Metric } from 'next/dist/compiled/web-vitals' | |
| export function useReportWebVitals( | |
| reportWebVitalsFn: (metric: Metric) => void | |
| ) { | |
| useEffect(() => { | |
| onCLS(reportWebVitalsFn) | |
| onFID(reportWebVitalsFn) | |
| onLCP(reportWebVitalsFn) | |
| onINP(reportWebVitalsFn) | |
| onFCP(reportWebVitalsFn) | |
| onTTFB(reportWebVitalsFn) | |
| }, [reportWebVitalsFn]) | |
| } | |
Xet Storage Details
- Size:
- 507 Bytes
- Xet hash:
- 42e83bd6de1eca052da48172c8f91f0fc5cdbf79cc9f60e9f6c8d77f43fc6195
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.