We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbd5a60 commit 357f5f7Copy full SHA for 357f5f7
packages/cra-template/template/src/reportWebVitals.js
@@ -1,5 +1,5 @@
1
const reportWebVitals = onPerfEntry => {
2
- if (onPerfEntry && onPerfEntry instanceof Function) {
+ if (onPerfEntry) {
3
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
4
getCLS(onPerfEntry);
5
getFID(onPerfEntry);
0 commit comments