From 4ad223277d083d7671dfce121664833d1573a2ac Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Fri, 14 Jul 2023 13:14:19 -0400 Subject: [PATCH] fix: duplicated meta content during async rendering (#1352) --- integrations/utils/src/lib.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/integrations/utils/src/lib.rs b/integrations/utils/src/lib.rs index df705dc29e..bdd33034ff 100644 --- a/integrations/utils/src/lib.rs +++ b/integrations/utils/src/lib.rs @@ -138,10 +138,6 @@ pub async fn build_async_response( // in async, we load the meta content *now*, after the suspenses have resolved let meta = use_context::(cx); - let head_meta = meta - .as_ref() - .map(|meta| meta.dehydrate()) - .unwrap_or_default(); let body_meta = meta .as_ref() .and_then(|meta| meta.body.as_string()) @@ -149,5 +145,5 @@ pub async fn build_async_response( runtime.dispose(); - format!("{head}{head_meta}{buf}{tail}") + format!("{head}{buf}{tail}") }