dyo / dyo

Dyo is a JavaScript library for building user interfaces.

Home Page:https://dyo.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Promise component error propagation

Zolmeister opened this issue · comments

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

Looking at the console, the error propagates, it just doesn't propagate to the catch callback.