fix ErrorBoundary starting in error state in CSR

This commit is contained in:
Greg Johnston 2024-06-22 13:01:18 -04:00
parent 737949cff6
commit 8dc7338b85
1 changed files with 3 additions and 1 deletions

View File

@ -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,
}
}
},