fix hydration of Suspend by including the missing placeholder it expects during hydration

This commit is contained in:
Greg Johnston 2024-05-22 08:07:27 -04:00
parent 3d9c295613
commit 13d5f12d7f
1 changed files with 2 additions and 2 deletions

View File

@ -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)
}
}