react.dev icon indicating copy to clipboard operation
react.dev copied to clipboard

Replaced var variables in search component to const variables

Open FTP-droid opened this issue 1 year ago • 2 comments
trafficstars

Replaced var variables in search component to const variables to improve code readability and to ensure these variables are not updated by future code additions in the encompassing function.

FTP-droid avatar Mar 02 '24 22:03 FTP-droid

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
react-dev ✅ Ready (Inspect) Visit Preview Mar 2, 2024 10:39pm

vercel[bot] avatar Mar 02 '24 22:03 vercel[bot]

Size changes

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

Five Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/404 79.75 KB (-1 B) 183.64 KB
/500 79.74 KB (-1 B) 183.64 KB
/[[...markdownPath]] 81.44 KB (-1 B) 185.33 KB
/errors 79.92 KB (-1 B) 183.82 KB
/errors/[errorCode] 79.9 KB (-1 B) 183.8 KB
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 10% or more, there will be a red status indicator applied, indicating that special attention should be given to this.

github-actions[bot] avatar Mar 02 '24 22:03 github-actions[bot]