diff --git a/packages/yew/src/html/component/lifecycle.rs b/packages/yew/src/html/component/lifecycle.rs
index 271fbacbe1d..6e687cdeda3 100644
--- a/packages/yew/src/html/component/lifecycle.rs
+++ b/packages/yew/src/html/component/lifecycle.rs
@@ -562,6 +562,7 @@ impl ComponentState {
#[cfg(feature = "ssr")]
ComponentRenderState::Ssr { ref mut sender } => {
+ let _ = shared_state;
if let Some(tx) = sender.take() {
tx.send(new_root).unwrap();
}