mirror of
https://github.com/leptos-rs/leptos
synced 2024-09-19 22:11:54 +00:00
fix: static generation should wait for file writes before resolving (#2994)
This commit is contained in:
parent
b0d8d4ee26
commit
27765b417c
1 changed files with 1 additions and 1 deletions
|
@ -313,7 +313,6 @@ impl ResolvedStaticPath {
|
|||
// awaiting the Future
|
||||
_ = tx.send((owner.clone(), Some(html)));
|
||||
} else {
|
||||
_ = tx.send((owner.clone(), None));
|
||||
if let Err(e) = writer(&self, &owner, html).await {
|
||||
#[cfg(feature = "tracing")]
|
||||
tracing::warn!("{e}");
|
||||
|
@ -321,6 +320,7 @@ impl ResolvedStaticPath {
|
|||
#[cfg(not(feature = "tracing"))]
|
||||
eprintln!("{e}");
|
||||
}
|
||||
_ = tx.send((owner.clone(), None));
|
||||
}
|
||||
|
||||
// if there's a regeneration function, keep looping
|
||||
|
|
Loading…
Reference in a new issue