mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
fix hydration of Suspend by including the missing placeholder it expects during hydration
This commit is contained in:
parent
3d9c295613
commit
13d5f12d7f
1 changed files with 2 additions and 2 deletions
|
@ -412,7 +412,7 @@ where
|
|||
Fut::Output: RenderHtml<Rndr>,
|
||||
Rndr: Renderer + 'static,
|
||||
{
|
||||
type AsyncOutput = Fut::Output;
|
||||
type AsyncOutput = Option<Fut::Output>;
|
||||
|
||||
const MIN_LENGTH: usize = Fut::Output::MIN_LENGTH;
|
||||
|
||||
|
@ -467,6 +467,6 @@ where
|
|||
}
|
||||
|
||||
async fn resolve(self) -> Self::AsyncOutput {
|
||||
self.0.await
|
||||
Some(self.0.await)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue