Skip to content
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

Docs: Add option for fetching data using route handlers - from the client #53793

Merged
merged 2 commits into from Aug 9, 2023

Conversation

delbaoliveira
Copy link
Contributor

In the data fetching page, we discuss the different ways you can fetch data in Next.js. This PR adds a fourth option which is to call route handlers from client components. I've also added a note that you shouldn't call a route handler from a server component.

@kodiakhq kodiakhq bot merged commit 8e0d108 into canary Aug 9, 2023
50 checks passed
@kodiakhq kodiakhq bot deleted the docs-1rbg branch August 9, 2023 13:55
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants