This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-24
Channels
- # announcements (2)
- # aws (2)
- # babashka (1)
- # beginners (87)
- # boot (1)
- # calva (42)
- # clj-kondo (18)
- # cljdoc (5)
- # cljsjs (1)
- # cljsrn (1)
- # clojars (16)
- # clojure (222)
- # clojure-dev (30)
- # clojure-europe (17)
- # clojure-gamedev (2)
- # clojure-hungary (10)
- # clojure-italy (6)
- # clojure-nl (21)
- # clojure-spec (9)
- # clojure-uk (111)
- # clojuredesign-podcast (1)
- # clojurescript (99)
- # code-reviews (1)
- # conjure (18)
- # cursive (11)
- # datomic (22)
- # emacs (1)
- # events (3)
- # figwheel-main (3)
- # fulcro (14)
- # graalvm (41)
- # graphql (16)
- # helix (12)
- # juxt (1)
- # kaocha (56)
- # keechma (1)
- # meander (77)
- # observability (1)
- # off-topic (29)
- # pathom (3)
- # re-frame (4)
- # reagent (3)
- # reitit (1)
- # remote-jobs (3)
- # reveal (9)
- # shadow-cljs (45)
- # spacemacs (43)
- # sql (28)
- # tools-deps (14)
- # vim (1)
- # xtdb (26)
- # yada (1)
Did you export your components?
Any idea why a component may not be updating in a firefox extension content script? Basically doing
(def test-atom (r/atom {}))
(defn test-comp [] [:div "Test " (:text @test-atom)])
(defn init []
(let [el (. js/document createElement "div")]
(rdom/render [test-comp] el)
(.. js/document -body (appendChild el))
(swap! test-atom assoc :text "works"))))
in the extension's content script produces a div with "Test", not "Test works". It works in chrome but not firefox. The atom is being changed, but test-comp is not being rerendered. Have tried with swapping render
and appendChild
, same result.After a couple of hours of debugging reagent, discovered that this has been fixed and I have been using an outdated version of reagent https://github.com/reagent-project/reagent/issues/438