mirror of
https://github.com/leptos-rs/leptos
synced 2024-09-20 06:21:57 +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
|
// awaiting the Future
|
||||||
_ = tx.send((owner.clone(), Some(html)));
|
_ = tx.send((owner.clone(), Some(html)));
|
||||||
} else {
|
} else {
|
||||||
_ = tx.send((owner.clone(), None));
|
|
||||||
if let Err(e) = writer(&self, &owner, html).await {
|
if let Err(e) = writer(&self, &owner, html).await {
|
||||||
#[cfg(feature = "tracing")]
|
#[cfg(feature = "tracing")]
|
||||||
tracing::warn!("{e}");
|
tracing::warn!("{e}");
|
||||||
|
@ -321,6 +320,7 @@ impl ResolvedStaticPath {
|
||||||
#[cfg(not(feature = "tracing"))]
|
#[cfg(not(feature = "tracing"))]
|
||||||
eprintln!("{e}");
|
eprintln!("{e}");
|
||||||
}
|
}
|
||||||
|
_ = tx.send((owner.clone(), None));
|
||||||
}
|
}
|
||||||
|
|
||||||
// if there's a regeneration function, keep looping
|
// if there's a regeneration function, keep looping
|
||||||
|
|
Loading…
Reference in a new issue