fix root component suspense
This commit is contained in:
1 parent
d637ef187c
commit
c19420cb29
4 files changed
+8
-21
No files matched your search
@@ -542,7 +542,12 @@ impl VirtualDom {
|
||||
});
|
||||
}
|
||||
// If an error occurs, we should try to render the default error component and context where the error occured
|
||||
RenderReturn::Aborted(_placeholder) => panic!("Cannot catch errors during rebuild"),
|
||||
RenderReturn::Aborted(placeholder) => {
|
||||
log::info!("Ran into suspended or aborted scope during rebuild");
|
||||
let id = self.next_null();
|
||||
placeholder.id.set(Some(id));
|
||||
self.mutations.push(Mutation::CreatePlaceholder { id });
|
||||
}
|
||||
}
|
||||
|
||||
self.finalize()
|
||||
|
||||
Reference in new issue
Block a user