We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db9f808 commit d3a2971Copy full SHA for d3a2971
crates/next-api/src/app.rs
@@ -855,7 +855,13 @@ impl AppProject {
855
graphs.push(graph);
856
let mut visited_modules = VisitedModules::from_graph(graph);
857
858
- for module in server_component_entries.iter() {
+ // Skip the last server component, which is the page itself, because that one
859
+ // won't have it's visited modules added, and will be visited in the next step
860
+ // as part of rsc_entry
861
+ for module in server_component_entries
862
+ .iter()
863
+ .take(server_component_entries.len().saturating_sub(1))
864
+ {
865
let graph = SingleModuleGraph::new_with_entries_visited_intern(
866
// This should really be ChunkGroupEntry::Shared(module.await?.module),
867
// but that breaks everything for some reason.
0 commit comments