Skip to content

Instantly share code, notes, and snippets.

@juliankrispel
Created June 19, 2018 16:02
Show Gist options
  • Save juliankrispel/911638d8735a4605dd066d22adbfa41a to your computer and use it in GitHub Desktop.
Save juliankrispel/911638d8735a4605dd066d22adbfa41a to your computer and use it in GitHub Desktop.
<RenderObservable
observable={interval(2000).pipe(startWith(0))}
>
{({ value, value$ }) => <div>
<Number>Value of {value}</Number>
<RenderObservable
observable={value$ && merge(value$, interval(300))}
>
{({ value }) => <Number>Value of {value}</Number>}
</RenderObservable>
</div>}
</RenderObservable>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment