From 3d1b49eb51af4e27c205da388bc31528a57eb50f Mon Sep 17 00:00:00 2001 From: Cecile Tonglet Date: Wed, 20 Jul 2022 15:22:39 +0100 Subject: [PATCH] WIP --- packages/yew/src/html/component/mod.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/yew/src/html/component/mod.rs b/packages/yew/src/html/component/mod.rs index 34a3f0d4b6f..63c3bd23435 100644 --- a/packages/yew/src/html/component/mod.rs +++ b/packages/yew/src/html/component/mod.rs @@ -292,8 +292,12 @@ mod tests { let ctx = Context { scope: Scope::new(None), props: Rc::new(()), + #[cfg(feature = "hydration")] + creation_mode: crate::html::RenderMode, + #[cfg(feature = "hydration")] + prepared_state: None, }; - assert!(comp.update(&ctx, ())); - assert!(comp.changed(&ctx)); + assert!(Component::update(&mut comp, &ctx, ())); + assert!(Component::changed(&mut comp, &ctx)); } }