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