kosich / rxjs-autorun

Re-evaluate an expression whenever Observable in it emits
MIT License
34 stars 2 forks source link

Completing with EMPTY #31

Closed kosich closed 3 years ago

kosich commented 3 years ago

fix #22

This PR adds an ability to complete expression by tracking EMPTY observable. Thus we can implement a takeWhile:

computed(() => $(o) < 5 ? $(o) : $(EMPTY))
kosich commented 3 years ago

I also have dual feelings about this, really! Let's merge and watch closely how it works in practice...

I'm itchy to give it a try 🙂

kosich commented 3 years ago

And I'm glad you're back 🙌