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 b45ae3c commit a97c5d1Copy full SHA for a97c5d1
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