-
Notifications
You must be signed in to change notification settings - Fork 27k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make
notFound()
work in "use cache"
page
When `notFound()` is called in a `"use cache"` function, we need to make sure that the custom error digest is included in the serialized RSC payload. Otherwise the `HTTPAccessFallbackErrorBoundary` won't be able to detect the error as an `HTTPAccessFallbackError`. fixes #73130
- Loading branch information
1 parent
3d82475
commit c37b182
Showing
4 changed files
with
31 additions
and
9 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
'use cache' | ||
|
||
import { notFound } from 'next/navigation' | ||
|
||
export default async function Page() { | ||
notFound() | ||
|
||
return <p>This will never render</p> | ||
} |
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