mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
fix: CSR <ErrorBoundary/>
This commit is contained in:
parent
8b9685e01d
commit
1534dd5261
1 changed files with 3 additions and 2 deletions
|
@ -144,8 +144,9 @@ where
|
|||
type State = RenderEffect<ErrorBoundaryViewState<Chil::State, Fal::State>>;
|
||||
|
||||
fn build(mut self) -> Self::State {
|
||||
let mut children = Some(self.children.build());
|
||||
let hook = Arc::clone(&self.hook);
|
||||
let _hook = throw_error::set_error_hook(Arc::clone(&hook));
|
||||
let mut children = Some(self.children.build());
|
||||
RenderEffect::new(
|
||||
move |prev: Option<
|
||||
ErrorBoundaryViewState<Chil::State, Fal::State>,
|
||||
|
@ -315,7 +316,7 @@ where
|
|||
) where
|
||||
Self: Sized,
|
||||
{
|
||||
let hook = throw_error::set_error_hook(self.hook);
|
||||
let _hook = throw_error::set_error_hook(self.hook);
|
||||
// first, attempt to serialize the children to HTML, then check for errors
|
||||
let mut new_buf = StreamBuilder::new(buf.clone_id());
|
||||
let mut new_pos = *position;
|
||||
|
|
Loading…
Reference in a new issue