This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-03
Channels
- # aleph (6)
- # announcements (4)
- # babashka (73)
- # beginners (117)
- # calva (25)
- # chlorine-clover (59)
- # cider (21)
- # clara (3)
- # cljdoc (8)
- # cljs-dev (54)
- # cljsrn (15)
- # clojure (65)
- # clojure-france (5)
- # clojure-spec (3)
- # clojure-uk (13)
- # clojurescript (79)
- # conf-proposals (1)
- # conjure (17)
- # core-logic (11)
- # datomic (21)
- # fulcro (82)
- # graalvm (11)
- # helix (7)
- # jobs-discuss (11)
- # joker (2)
- # juxt (3)
- # local-first-clojure (1)
- # luminus (5)
- # nrepl (61)
- # off-topic (12)
- # pathom (70)
- # re-frame (3)
- # reitit (3)
- # rum (1)
- # shadow-cljs (58)
- # sql (1)
- # tools-deps (26)
- # xtdb (3)
Righto. My issue is with react-navigation. Here is a repro repo: https://github.com/olivergeorge/krell-repros/tree/react-navigation-3
If I change something in the view ns like the container1 text it's not displayed. If I cause the core namespace to reload (say add some whitespace and save the file) then the view updates.
For completeness I've done the same for v4 and v5. Same issue.
(slight variations on which file needs to change to get the view to update on v5)
I think I have a solution, via re-render with key prop...
(def cnt (r/atom 0))
(defn app []
[navigation-screen/container {:key @cnt}])
(defn ^:export -main [& args]
(swap! cnt inc)
(r/as-element [app]))
Still thinking this through. I suspect it will wipe component local state across the app - not sure if that's a problem or not but makes it a bit of a crude implement.solving interactions with various components doesn't seem practical for Krell - I simply haven't seen this particular problem in our app
the thing I'm interested in is why this wasn't a problem for you in re-natal - or maybe you got far enough along where you stopped noticing?
I’m not sure about that either. Wondering if the caching Is more aggressive on recent version of react / reach native.
I’ll try for a re-natal repro
Also wondering if figwheel is reloading dependent namespaces. E.g. changing views causes nav to reload.