Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs: Add option for fetching data using route handlers - from the cl…
…ient (#53793) 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. Co-authored-by: Lee Robinson <9113740+leerob@users.noreply.github.com>
- Loading branch information
1 parent
e127c51
commit 8e0d108
Showing
1 changed file
with
17 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters