Open alfonsogarciacaro opened 1 year ago
let bindElementC<'T> (store : IObservable<'T>) (element: 'T -> SutilElement) (compare : 'T -> 'T -> bool)
let bindElementCO<'T> (store : IObservable<'T>) (element: IObservable<'T> -> SutilElement) (compare : 'T -> 'T -> bool)
It's good question. I remember starting this refactoring to allow composition elsewhere, but the CO
version is still making a subscription, and then ignoring next
and projecting from the store. I would need to dig a little deeper, and see if the references (K and KO) can be refactored out.
What's the difference between
bindElementC
andbindElementCO
? Most of the code in the functions is the same except the former callsbuild (element(next))
while the latter usesbuild (element(store))
.