OlivierBlanvillain / monadic-html

Tiny DOM binding library for Scala.js
https://olivierblanvillain.github.io/monadic-html/examples/
MIT License
225 stars 24 forks source link

Initial sketch a fanning-out Rx construct #113

Closed esarbe closed 4 years ago

esarbe commented 4 years ago

While trying out monadic-html in one of my projects I quickly stumbled over the problem that Sets and Lists will (of course) emit a signal for all subscribers if the list changes. This is an initial sketch that tries to work around that by introducing a descend concept. In this initial sketch, it takes a Rx[Set[T]] and operates the signals on the level of the elements of the given set.

It pretty much works as expected for Sets. I wonder if this can be extended to collections in general and maybe even compound objects.

What do you think?

esarbe commented 4 years ago

trying to approach this differently