Skip to content

Conversation

@DeveloperViraj
Copy link

This PR removes the unused useContext import from the AddTask and TaskList examples on the useContext reference page.

These examples use custom hooks (useTasks, useTasksDispatch) and no longer call useContext directly, so the import is unnecessary.

This aligns the examples with the actual code usage and fixes a small typo reported in the issue.

Closes #8186.

@github-actions
Copy link

github-actions bot commented Dec 8, 2025

Size changes

📦 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! 🙌

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.

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

1 participant