Skip to content

Commit

Permalink
Move await around
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed Sep 24, 2024
1 parent dabd27f commit 228435a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions crates/next-api/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,7 @@ impl AppEndpoint {
(
Some(get_app_server_reference_modules(client_reference_types)),
Some(client_dynamic_imports),
Some(client_references.await?),
Some(client_references),
)
} else {
(None, None, None)
Expand Down Expand Up @@ -1256,8 +1256,11 @@ impl AppEndpoint {
let mut current_chunks = OutputAssets::empty();
let mut current_availability_info = AvailabilityInfo::Root;
if let Some(client_references) = client_references {
for server_component in
client_references.server_component_entries.iter().copied()
for server_component in client_references
.await?
.server_component_entries
.iter()
.copied()
{
let server_path = server_component.server_path();
let is_layout =
Expand Down

0 comments on commit 228435a

Please # to comment.