fix(js): isolate startup binding failures
Keep the public runtime API available and report state, binding, and SSE startup errors independently so one startup failure cannot hide the runtime object or other roots. req: runtime/002
This commit is contained in:
@@ -793,10 +793,18 @@
|
||||
roots().forEach((root) => {
|
||||
try {
|
||||
bootstrapState(root);
|
||||
} catch (error) {
|
||||
emit(root, "hemx:state-error", String(error));
|
||||
}
|
||||
try {
|
||||
bindRoot(root);
|
||||
} catch (error) {
|
||||
emit(root, "hemx:bind-error", String(error));
|
||||
}
|
||||
try {
|
||||
bindSse(root);
|
||||
} catch (error) {
|
||||
emit(root, "hemx:error", String(error));
|
||||
emit(root, "hemx:sse-error", String(error));
|
||||
}
|
||||
});
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user