This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-21
Channels
- # 100-days-of-code (1)
- # announcements (2)
- # beginners (164)
- # cider (23)
- # cljs-dev (30)
- # cljsjs (11)
- # cljsrn (7)
- # clojure (116)
- # clojure-boston (1)
- # clojure-dev (20)
- # clojure-finland (2)
- # clojure-italy (4)
- # clojure-nl (1)
- # clojure-uk (10)
- # clojurescript (39)
- # core-async (19)
- # cursive (43)
- # data-science (2)
- # datomic (24)
- # emacs (10)
- # figwheel-main (20)
- # fulcro (63)
- # hoplon (7)
- # hyperfiddle (7)
- # instaparse (3)
- # kaocha (1)
- # nrepl (3)
- # off-topic (170)
- # onyx (13)
- # other-languages (3)
- # parinfer (13)
- # re-frame (39)
- # reagent (5)
- # reitit (22)
- # ring-swagger (4)
- # shadow-cljs (284)
- # spacemacs (2)
- # sql (27)
- # testing (28)
- # unrepl (2)
Do I need original-cell
? Like what if I just did
(cell= (dosync
(reset! cell1 (value-fn-1 cell2 cell3))
(reset! cell2 (value-fn-2 cell1 cell3))
(reset! cell3 (value-fn-3 cell1 cell2))))
Would Javelin know that in that expression cell1
, cell2
and cell3
are Javelin cells that need watches added? I figure it would since it somehow does that for other kinds of cell=
expressions.Where those value-fn
functions compute the value of one of the cells based on the values of the other two or whatever.
it would add the watches i think, but could result in a cycle
sorry i didn't have a chance to make an example for you, will do asap
@jamesvickers19515 yes it will add the watches for you, however that would no longer be a lens cell
cell=
has 2 arguments the first is the cell to watch which updates the value for cell=
the second is a callback that should be invoked when trying to update the cell=
your example would create an infinite loop