This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-09-25
Channels
- # asami (5)
- # babashka (38)
- # beginners (116)
- # calva (65)
- # chlorine-clover (4)
- # cider (8)
- # cljfx (6)
- # cljsrn (7)
- # clojure (18)
- # clojure-australia (1)
- # clojure-europe (49)
- # clojure-spec (6)
- # clojure-uk (4)
- # clojurescript (3)
- # clojureverse-ops (13)
- # core-async (2)
- # cryogen (1)
- # cursive (9)
- # datahike (32)
- # fulcro (3)
- # gratitude (17)
- # malli (4)
- # music (3)
- # nrepl (8)
- # off-topic (14)
- # releases (2)
- # rewrite-clj (3)
- # shadow-cljs (4)
- # vrac (1)
- # xtdb (4)
Hi everyone, Is there a way to refresh the scene every time one of my "components" gets re-evaluated? I was looking for a way to do this with nrepl and cider. More details here: https://clojurians.slack.com/archives/C17JYSA3H/p1632594201013200 Thanks
Hi @U47G49KHQ , Thank you very much for you support. Refreshing the scene when the state changes is working as expected. My challenge is to refreshing the scene when the one of the component (functions) gets updated via repl.
Currently I have to run the renderer function every time one of the components changes.
(def renderer
(fx/create-renderer
:middleware (fx/wrap-map-desc (fn [state]
{:fx/type root-view
:state state}))
:opts {:fx.opt/map-event-handler event-handler}))