Skip to content

Update Fetch data related to "use" hook #78508

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: canary
Choose a base branch
from

Conversation

ismaelrumzan
Copy link
Contributor

Based on this
https://github.com/vercel/feedback/issues/91001
Renaming "hook" to "server API" to avoid the confusion of thinking it's like a "traditional" hook like useState

Based on this
vercel/feedback#91001
Renaming "hook" to "server API" to avoid the confusion of thinking it's like a "traditional" hook like useState
@ijjk ijjk added created-by: Next.js DevEx team PRs by the DX team. Documentation Related to Next.js' official documentation. labels Apr 24, 2025
Copy link
Contributor

Hi there 👋

It looks like this PR introduces broken links to the docs, please take a moment to fix them before merging:

Broken link Type File
/docs/app/getting-started/fetching-data#with-the-use-hook hash /docs/01-app/02-guides/single-page-applications.mdx

Thank you 🙏

@@ -91,12 +91,12 @@ export default async function Page() {

There are two ways to fetch data in Client Components, using:

1. React's [`use` hook](https://react.dev/reference/react/use)
1. React's [`use` server API](https://react.dev/reference/react/use)
Copy link
Member

Choose a reason for hiding this comment

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

Just "API", not server, since you can use it in client components (could be confusing)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
created-by: Next.js DevEx team PRs by the DX team. Documentation Related to Next.js' official documentation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants