Skip to content

Commit

Permalink
docs: Add example code block to error handling docs (#67515)
Browse files Browse the repository at this point in the history
Co-authored-by: Lee Robinson <me@leerob.io>
  • Loading branch information
mert-duzgun and leerob committed Jul 7, 2024
1 parent 0177545 commit 1ccc9e8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ You could also use the returned state to display a toast message from the client
### Handling Expected Errors from Server Components
When fetching data inside of a Server Component, you can use the response to conditionally render an error message or `redirect`.
When fetching data inside of a Server Component, you can use the response to conditionally render an error message or [`redirect`](/docs/app/building-your-application/routing/redirecting#redirect-function).
```tsx filename="app/page.tsx" switcher
export default async function Page() {
Expand Down

0 comments on commit 1ccc9e8

Please sign in to comment.