Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
16
node_modules/next/dist/esm/client/web-vitals.js
generated
vendored
Normal file
16
node_modules/next/dist/esm/client/web-vitals.js
generated
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import { useEffect } from 'react';
|
||||
import { onLCP, onFID, onCLS, onINP, onFCP, onTTFB } from 'next/dist/compiled/web-vitals';
|
||||
export function useReportWebVitals(reportWebVitalsFn) {
|
||||
useEffect(()=>{
|
||||
onCLS(reportWebVitalsFn);
|
||||
onFID(reportWebVitalsFn);
|
||||
onLCP(reportWebVitalsFn);
|
||||
onINP(reportWebVitalsFn);
|
||||
onFCP(reportWebVitalsFn);
|
||||
onTTFB(reportWebVitalsFn);
|
||||
}, [
|
||||
reportWebVitalsFn
|
||||
]);
|
||||
}
|
||||
|
||||
//# sourceMappingURL=web-vitals.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue