Skip to content

fix: remove unused useContext import in sandbox examples#8509

Merged
eps1lon merged 1 commit into
reactjs:mainfrom
DakshSinghDhami:fix-unused-useContext
Jun 29, 2026
Merged

fix: remove unused useContext import in sandbox examples#8509
eps1lon merged 1 commit into
reactjs:mainfrom
DakshSinghDhami:fix-unused-useContext

Conversation

@DakshSinghDhami

Copy link
Copy Markdown
Contributor

Fixes #8186

AddTask.js and TaskList.js in the "Scaling up with context and a reducer" example both imported useContext from React but never used it. Removed the unused import from both files.

Fixes reactjs#8186

AddTask.js and TaskList.js in the 'Scaling up with context and a reducer'
example imported useContext but never used it. Removed the unused import
from both files.
@github-actions

Copy link
Copy Markdown

Size changes

Details

📦 Next.js Bundle Analysis for react-dev

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

This PR introduced no changes to the JavaScript bundle! 🙌

@eps1lon eps1lon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@eps1lon eps1lon merged commit 71654a3 into reactjs:main Jun 29, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Typo]: The code example on the "useContext" page includes an unused import useContext

2 participants