🏠 back to Observable

Recovering from promise rejection

I’ve noticed that a dependent cell won’t recover from receiving a promise rejection if following promises are only announced through an input event. The promise source has to yield a new promise:

Is this by design, a bug or an unsupported pattern?

1 Like

The value of a view is implemented as a generator, and just in the same way a generator cell won’t resume after it throws an error (it only resumes after yield), neither will a view.

Somewhat related: https://github.com/observablehq/stdlib/issues/44

3 Likes