svelte-rxjs-observer (0.5.1)

Value with the Observer component

{ "slot": "pending" }
html
<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
html
{$subject}