Skip to content

Conversation

@vvscode
Copy link

@vvscode vvscode commented Feb 3, 2026

What?

use is not a hook. It's highlighted in the doc

Unlike React Hooks, use can be called within loops and conditional statements like if. Like React Hooks, the function that calls use must be a Component or Hook.

Why?

It confuses consumers of Next.js and adds field provide misleading proofs

How?

Closes NEXT-
Fixes #

-->

@nextjs-bot nextjs-bot added the Documentation Related to Next.js' official documentation. label Feb 3, 2026
@nextjs-bot
Copy link
Collaborator

nextjs-bot commented Feb 3, 2026

Allow CI Workflow Run

  • approve CI run for commit: 4b7ba93

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

@nextjs-bot
Copy link
Collaborator

nextjs-bot commented Feb 3, 2026

Allow CI Workflow Run

  • approve CI run for commit: 29b59ee

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

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

Labels

Documentation Related to Next.js' official documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants