Fix the root error boundary during suspense in ssr (#4710)
* Fix the root error boundary during suspense in ssr * fix some typos
This commit is contained in:
1 parent
10912f4750
commit
ad40f81607
9 files changed
+49
-13
No files matched your search
@@ -241,7 +241,7 @@ impl SsrRendererPool {
|
||||
|
||||
// check if there are any errors
|
||||
let errors = virtual_dom.in_runtime(|| {
|
||||
let error_context: ErrorContext = ScopeId::APP
|
||||
let error_context: ErrorContext = ScopeId::ROOT_ERROR_BOUNDARY
|
||||
.consume_context()
|
||||
.expect("The root should be under an error boundary");
|
||||
let errors = error_context.errors();
|
||||
|
||||
Reference in new issue
Block a user