From 8dc7338b854c0777919338ae9316976e0ca33d80 Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Sat, 22 Jun 2024 13:01:18 -0400 Subject: [PATCH] fix ErrorBoundary starting in error state in CSR --- leptos/src/error_boundary.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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, } } },