Promise component error propagation
Zolmeister opened this issue · comments
Zolmeister commented
Components which return promises do not error correctly.
e.g. https://codesandbox.io/s/black-fast-zw42m
function Counter() {
return h("div", {}, Promise.reject("x"));
}
render(<Counter />, rootElement) // doesn't propagate error
Sultan commented
Looking at the console, the error propagates, it just doesn't propagate to the catch
callback.