Skip to content

Conversation

@DeveloperViraj
Copy link

Fixes #8099

Clarifies that getVisibleTodos() is only called when todos or showActive change. Typing into the input (which updates text) does not trigger it because text is local to the NewTodo component. Extracting NewTodo improves clarity, not runtime behavior.

@github-actions
Copy link

Size changes

📦 Next.js Bundle Analysis for react-dev

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

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 110.54 KB (🟡 +1 B)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

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

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Confusing explanation in Challenge 2 of React Learn ("You Might Not Need an Effect")

1 participant