diff --git a/leptos/src/error_boundary.rs b/leptos/src/error_boundary.rs index 1b26f19f8..32346f933 100644 --- a/leptos/src/error_boundary.rs +++ b/leptos/src/error_boundary.rs @@ -175,9 +175,11 @@ where } state } else { + let fallback = (!self.errors_empty.get()) + .then(|| (self.fallback)(self.errors.clone()).build()); ErrorBoundaryViewState { children: children.take().unwrap(), - fallback: None, + fallback, } } },