This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-04-14
Channels
- # beginners (53)
- # cider (10)
- # cljs-dev (23)
- # cljsrn (25)
- # clojure (68)
- # clojure-italy (4)
- # clojure-spec (25)
- # clojure-uk (7)
- # clojurebridge-ams (1)
- # clojurescript (10)
- # cursive (20)
- # datomic (21)
- # duct (4)
- # fulcro (1)
- # graphql (4)
- # hoplon (1)
- # java (7)
- # luminus (9)
- # off-topic (111)
- # om-next (2)
- # onyx (14)
- # re-frame (3)
- # reagent (9)
- # shadow-cljs (182)
- # test-check (32)
- # tools-deps (53)
- # uncomplicate (1)
- # vim (94)
- # yada (2)
A Reaction tracks all dereferencings of ratoms during the execution of the render fn
It doesn’t matter where the ratom is declared or if it’s dereferenced in the function body or elsewhere (but before the render fn returns)
It’s all pretty simple to track because of JavaScript’s single threaded nature
thank @pesterhazy, maybe you know some post on reactions?
I think you’ll need to dig into the source
I’m trying to do some interop with react-beautiful-dnd
, and I’m almost there. I just have an odd challenge; I need for a React element to be the last element in a [:div]
vector which I’m then wrapping in (reagent.core/as-element)
, that is;
(reagent.core/as-element [:div {:my attributes-map} some-content the-React-element)])
I’m not getting an error, but I’m not getting the expected behaviour, either. I suspect it’s because I’m trying to convert a hiccup vector which contains a React element, which doesn’t really make sense.
I’m trying to figure out what gymnastics I can do to make this happen, though.
Anyone have an idea of a direction for me? 🙂