-
Notifications
You must be signed in to change notification settings - Fork 26.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Export segment prefetch data during build
Implements exporting segment prefetch data during build. Although the goal is to support individual segments being requested by the client, all of the segments for a page are generated simultaneously, including during revalidations. This is to ensure consistency, because it's possible for a mismatch between a layout and page segment can cause the client to error during rendering. We want to preserve the ability of the client to recover from such a mismatch by re-requesting all the segments to get a consistent view of the page. The segments data is generated during the same phase that we currently generate prefetch data for the entire page. In this commit, I have not yet implemented the actual segment generation; I'm using placeholder data for now. I've only implemented the plumbing of the data through the build process. I will implement the segment generation in a separate PR.
- Loading branch information
Showing
5 changed files
with
66 additions
and
0 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
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