You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That you never see the catch block is "works as designed" I think. Technically you can await anything but only if it's a promise, you will get the catch behavior. Showing "loading" while undefined and then should work though.
I believe {#await} wraps its argument in Promise.resolve() so that it also works with regular values, but yeah by design it doesn't work with whatever interface RxJS exposes. Only store autosubscription interfaces with that, and in a limited way. If there's something svelte-observable ought to be doing differently, you can open an issue in the project, as it's not an official library.
When using RxJS observables with the
await
block the first block and the error block never renders.It renders:
undefined
->0
->1
->2
Using
svelte-observable
it works as expectedand renders:
Loading...
->0
->1
->2
->Error
app.svelte
Node 14
Chrome 84
The text was updated successfully, but these errors were encountered: