svelte-rxjs-observer (0.5.3)
Value with the Observer component
{
"slot": "pending"
}
<Observer {observable} let:next {errorType}>
{stringify({ next })}
<svelte:fragment slot="pending">
{stringify({ slot: 'pending' })}
</svelte:fragment>
<svelte:fragment slot="error" let:error let:last>
{stringify({ slot: 'error', error: { message: error.message }, last })}
</svelte:fragment>
<svelte:fragment slot="completed" let:last>
{stringify({ slot: 'completed', last })}
</svelte:fragment>
</Observer>
Value with regular store subscription:
undefined
{$subject}