This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-08-22
Channels
- # announcements (9)
- # beginners (96)
- # calva (14)
- # cider (49)
- # clj-kondo (29)
- # cljsrn (5)
- # clojure (55)
- # clojure-dev (37)
- # clojure-europe (4)
- # clojure-italy (4)
- # clojure-nl (5)
- # clojure-spec (5)
- # clojure-switzerland (3)
- # clojure-uk (5)
- # clojurescript (172)
- # cursive (14)
- # datomic (3)
- # duct (1)
- # emacs (6)
- # fulcro (17)
- # jobs (1)
- # leiningen (6)
- # nrepl (11)
- # off-topic (26)
- # pedestal (2)
- # re-frame (20)
- # reagent (9)
- # remote-jobs (3)
- # shadow-cljs (67)
- # spacemacs (24)
- # specter (6)
- # test-check (3)
- # tools-deps (18)
I am trying to wrap a react component (react-grid-layout) in a reagent compnent. The react component stores its state in a property called "state" - ideally, I would be able to store/update this state in an atom instead.
I'm guessing I have to intercept a potential prop change to my atom using componentWillReceiveProps and then forward that to the underlying react component.
Did you check the function current-component in reagent?
My experience with material-ui is you can actually store the state in a ratom and check if rerendering your component is fast enough
does anyone happen to know a reference for rules on when reactions and ratoms are recalculated?