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

Adding Learn docs for RSCs

Open lunaleaps opened this issue 1 year ago • 2 comments
trafficstars

This is a draft PR for the outline shared here: https://docs.google.com/document/d/1rQVqqBI7KXVRQjValsCXqsEFqmGQ6h4fWdFAQ9X0d7o/edit?usp=sharing (TODO: put this up accessible somewhere.

Outline of Changes

  • New Rendering Data chapter
    • Fetching Data: https://react-dev-git-fork-lunaleaps-learn-rsc-fbopensource.vercel.app/learn/fetching-data
    • Loading and Error States: todo

lunaleaps avatar Dec 18 '23 18:12 lunaleaps

Size changes

📦 Next.js Bundle Analysis for react-dev

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

Three 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 77.38 KB (🟡 +27 B) 181.2 KB
/500 77.38 KB (🟡 +27 B) 181.19 KB
/[[...markdownPath]] 78.97 KB (🟡 +27 B) 182.79 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 Dec 18 '23 18:12 github-actions[bot]

I'm glad this is being worked on, thanks! lmk if you'd like community feedback.

nickserv avatar Feb 01 '24 06:02 nickserv