Skip to content

Commit

Permalink
Bump version of Verdaccio (facebook#7787)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianschmitz authored and yoyota committed Jun 28, 2021
1 parent 05f7014 commit 33a56c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docusaurus/docs/measuring-performance.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ reportWebVitals(sendToAnalytics);
> **Note:** If you use Google Analytics, use the `id` value to make it easier to construct metric distributions manually (to calculate percentiles, etc…).
>
> ```js
> function sendToAnalytics({id, name, value}) {
> function sendToAnalytics({ id, name, value }) {
> ga('send', 'event', {
> eventCategory: 'Web Vitals',
> eventAction: name,
Expand All @@ -58,7 +58,7 @@ reportWebVitals(sendToAnalytics);
> nonInteraction: true, // avoids affecting bounce rate
> });
> }
>
>
> reportWebVitals(sendToAnalytics);
> ```
>
Expand Down
6 changes: 3 additions & 3 deletions packages/cra-template/template/src/reportWebVitals.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
const reportWebVitals = (onPerfEntry) => {
const reportWebVitals = onPerfEntry => {
if (onPerfEntry && onPerfEntry instanceof Function) {
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
getCLS(onPerfEntry);
getCLS(onPerfEntry);
getFID(onPerfEntry);
getFCP(onPerfEntry);
getLCP(onPerfEntry);
getTTFB(onPerfEntry);
});
}
}
};

export default reportWebVitals;

0 comments on commit 33a56c1

Please sign in to comment.