This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-04-15
Channels
- # announcements (10)
- # beginners (113)
- # calva (2)
- # cider (75)
- # clj-kondo (1)
- # cljdoc (2)
- # clojure (142)
- # clojure-europe (11)
- # clojure-gamedev (6)
- # clojure-italy (7)
- # clojure-nl (8)
- # clojure-spec (3)
- # clojure-uk (50)
- # clojurescript (47)
- # cursive (7)
- # data-science (22)
- # datomic (12)
- # dirac (3)
- # events (1)
- # fulcro (114)
- # gorilla (1)
- # jackdaw (5)
- # joker (3)
- # kaocha (10)
- # leiningen (1)
- # liberator (2)
- # mount (6)
- # nrepl (1)
- # off-topic (16)
- # pathom (34)
- # pedestal (3)
- # re-frame (19)
- # reagent (11)
- # remote-jobs (5)
- # shadow-cljs (127)
- # spacemacs (12)
- # test-check (15)
- # tools-deps (8)
- # vim (4)
I’m trying to integrate Draft.js into Reagent, and a Stackoverflow post suggests that I need to force an update on change to get it to work. However, it’s a little light on details. What’s the most idiomatic way of forcing a component to update in Reagent?
Alternatively, does anyone know an editor component that works better with Reagent?
I guess (r/flush)
might work. For reference, I’m looking at: https://stackoverflow.com/questions/37700393/using-draft-js-with-reagent
@weavejester I have no experience with Draft.js but see if this helps https://github.com/Day8/re-frame/blob/master/docs/Using-Stateful-JS-Components.md
Thanks, I’ll read through it
reagent.core/force-update
@dustingetz How do you get a reference to the current component? Use a type-3 component?
ummm good question i can never remember, try reagent.core/current-component
Ah, thanks!