Skip to content

Conversation

@vvscode
Copy link
Contributor

@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: e886c9b

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

@icyJoseph icyJoseph self-requested a review February 5, 2026 10:08
@icyJoseph
Copy link
Collaborator

Hiyo, need to add some more fixes:

In these two other docs:

  • docs/01-app/01-getting-started/05-server-and-client-components.mdx
  • docs/01-app/02-guides/single-page-applications.mdx

We make a link reference to: /docs/app/getting-started/fetching-data#streaming-data-with-the-use-hook and that should be /docs/app/getting-started/fetching-data#streaming-data-with-the-use-api instead

@vvscode
Copy link
Contributor Author

vvscode commented Feb 10, 2026

@icyJoseph thanks for the notice. Updated in those and other files as well

@vvscode
Copy link
Contributor Author

vvscode commented Feb 10, 2026

@icyJoseph do I need to do something else to push it forward?

@icyJoseph
Copy link
Collaborator

@vvscode nope, I take it from here

@icyJoseph icyJoseph self-requested a review February 10, 2026 08:53
@icyJoseph
Copy link
Collaborator

Nice, you can stop merging canary. I take it from here :)

@icyJoseph icyJoseph merged commit be56ce3 into vercel:canary Feb 11, 2026
61 checks passed
icyJoseph added a commit that referenced this pull request Feb 11, 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 #

-->

---------

Co-authored-by: Joseph <joseph.chamochumbi@vercel.com>
Co-authored-by: Joseph <sephxd1234@gmail.com>
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