here's a really minimal observable implementation i wrote:
ahdinosaur/push-stream, in case it's helpful for understanding the core idea (it was for me). it's based heavily on
Raynos/observ, which are presumably based on
or the more featured observable implementation (also based on
observ) we're starting to use in
unfortunatly we don't have a cannonical observable implementation. I wanted to use @matt's but I ended up creating https://www.npmjs.com/package/obv for flume, because I needed special handling of
once and removing listeners.
But the important thing is getting used to functions that take functions as arguments and functions that return functions! (generally called "higher order functions")
There's a bit of mutant observable in patchbay.
Currently really enjoying how it's helping refactor the profile page.
I would be interested in bringing
obv into alignment. That is if they are not already compatible.
I really like the
.once extention and the second arg to obs(..., immediate=boolean).