monadic-html icon indicating copy to clipboard operation
monadic-html copied to clipboard

feature suggestion: lazy merge

Open antonkulaga opened this issue 6 years ago • 3 comments

Merge is often used for complex wiring for patterns like redux, there the default behavior of running all initial values through is very annoying. I would be happy to have an alternative merge that will not put all initial values through itself but will just start from the initial value of the last merged element.

antonkulaga avatar Apr 08 '18 01:04 antonkulaga

Sounds reasonable. Do you think there is a case to keep both the current merge and a lazy variant? Updating the current merge to only output value from the right Rx sounds good to me.

OlivierBlanvillain avatar Apr 09 '18 17:04 OlivierBlanvillain

Both are good to me. For my use case I only need lazy merge, but I do not know if anybody needs merge in its current form for some other use-cases

antonkulaga avatar Apr 09 '18 17:04 antonkulaga

fwiw lazy merge is what I would idiomatically use. I don't have any uses cases that need the current behaviour.

fizzy33 avatar Jun 02 '18 17:06 fizzy33