diff --git a/packages/yew/src/functional/mod.rs b/packages/yew/src/functional/mod.rs index 007ed7ee2eb..520210080bd 100644 --- a/packages/yew/src/functional/mod.rs +++ b/packages/yew/src/functional/mod.rs @@ -167,7 +167,7 @@ impl HookContext { // Subsequent suspension, // components can have less hooks called when suspended, but not more. (false, Some(total_hook_counter)) => assert!( - self.counter > total_hook_counter, + self.counter <= total_hook_counter, "Hooks are called conditionally." ), }