This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-09-16
Channels
- # 100-days-of-code (16)
- # beginners (67)
- # boot (5)
- # cljs-dev (52)
- # cljsjs (2)
- # clojure (94)
- # clojure-spec (34)
- # clojure-uk (10)
- # clojurescript (91)
- # clojutre (1)
- # core-async (20)
- # cursive (5)
- # datomic (1)
- # figwheel-main (70)
- # fulcro (101)
- # hyperfiddle (3)
- # jobs (1)
- # klipse (16)
- # mount (1)
- # nrepl (3)
- # off-topic (24)
- # portkey (39)
- # re-frame (4)
- # reitit (1)
- # shadow-cljs (3)
- # spacemacs (9)
- # tools-deps (5)
Hello Re-framers! I look for a debugging advice. Have a properly working re-frame sub – shows the correct values in re-frisk tooling, but doesn’t render to UI. However, when I update the code a bit – then after the hot swap the desired re-render occurs. Sounds familiar?
It’s possibly an issue with the underlying React framework not noticing your changes. One way to force React to notice is to explicitly set a key on the component with the changeable data as part of the key
^{:key (str "my-component-" changeable-val)} [my-component ...]
Worked! Thanks! Can I make it more elegant now?