This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-02-09
Channels
- # announcements (26)
- # babashka (4)
- # beginners (17)
- # calva (21)
- # cider (13)
- # clerk (17)
- # clj-commons (23)
- # clj-kondo (3)
- # cljdoc (47)
- # cljsrn (10)
- # clojure (123)
- # clojure-belgium (2)
- # clojure-dev (25)
- # clojure-europe (34)
- # clojure-gamedev (2)
- # clojure-italy (1)
- # clojure-nl (3)
- # clojure-norway (4)
- # clojure-uk (4)
- # clojurescript (86)
- # cursive (12)
- # datahike (2)
- # datomic (2)
- # emacs (4)
- # fulcro (6)
- # funcool (15)
- # instaparse (1)
- # integrant (11)
- # jobs (1)
- # joyride (9)
- # kaocha (3)
- # membrane (8)
- # off-topic (1)
- # pathom (4)
- # practicalli (2)
- # quil (1)
- # rdf (1)
- # reagent (9)
- # remote-jobs (1)
- # shadow-cljs (27)
- # spacemacs (4)
- # specter (1)
- # sql (11)
- # tools-deps (55)
- # vim (1)
It’s doing this, and recreating shadow on every reload, it seems:
LOG Running "Harvey" with {"rootTag":131,"initialProps":{}}
LOG shadow-cljs #77 ready!
BUNDLE ./index.js
LOG Running "Harvey" with {"rootTag":141,"initialProps":{}}
LOG shadow-cljs #78 ready!
BUNDLE ./index.js
LOG Running "Harvey" with {"rootTag":151,"initialProps":{}}
LOG shadow-cljs #79 ready!
BUNDLE ./index.js
LOG Running "Harvey" with {"rootTag":161,"initialProps":{}}
LOG shadow-cljs #80 ready!
BUNDLE ./index.js
LOG Running "Harvey" with {"rootTag":171,"initialProps":{}}
LOG shadow-cljs #81 ready!
BUNDLE ./index.js
LOG Running "Harvey" with {"rootTag":181,"initialProps":{}}
LOG shadow-cljs #82 ready!
I tried disabling “fast refresh” in the debug menu, but seems like that turned everything off.
the metro refresh clobbers all state in the app, so it’s pretty annoying. glad that this isn’t the intended experience.
@U05224H0W perhaps the shadow live reloading isn’t working? could you suggest a way to debug that?
I see the compilation success messages, and when metro has refreshed, the changes are visible. however, when “fast refresh” is disabled in RN, I don’t see any subsequent changes.
are you following https://code.thheller.com/blog/shadow-cljs/2019/08/25/hot-reload-in-clojurescript.html?
it’s definitely reloading, perhaps shadow.react-native/render-root
isnt compatible with 0.71?
I can see the modules being loaded, and can observe atoms changing in the namespace, but then nothing happens in the render
@U05224H0W just a heads up, that there is indeed something not right with the render-root function, sadly - swapping to use the reload-comp
strategy in https://github.com/flexsurfer/rn-shadow-steroid is working fine.