hoplon

The :hoplon: ClojureScript Web Framework - http://hoplon.io/
2018-11-20T00:49:37.024800Z

For the first option, I would define a formula cell that mutates the 3 related input cells when it's changed? Not sure how the 2nd option (`do-watch`) plays with formula cells (or not)...Appreciate the answer a lot, do you think you could give a small example of what defining the 3 (more?) cells looks like?

2018-11-20T01:10:36.025500Z

I think the 1st idea you gave was staring me right in the face on the doc page for Javelin (https://github.com/hoplon/javelin)

(cell= (.log js/console c)) ;; anonymous formula cell for side effects.

2018-11-20T16:55:55.026200Z

@jamesvickers19515 i'll make a simple example later today for you, hopefully that will clarify

flyboarder 2018-11-20T22:03:17.026700Z

@jamesvickers19515 the alternative is to use a lens cell

flyboarder 2018-11-20T22:04:26.028Z

such as (cell= original-cell (dosync (reset! cell1 value1) (reset! cell2 value2) (reset! cell3 value3)))

flyboarder 2018-11-20T22:04:50.028500Z

where original-cell is a mix of the other cells or something along those lines

2018-11-20T23:00:28.028800Z

oh yeah, i forgot about that one!