cljsrn

https://github.com/drapanjanas/re-natal | https://github.com/drapanjanas/re-natal/wiki/FAQ | https://github.com/condense/mercury-app/wiki | https://github.com/seantempesta/expo-cljs-template/ https://www.npmjs.com/package/create-expo-cljs-app
zendevil 2021-03-20T09:35:07.005400Z

Is there a way to prevent loading of the whole bundle when making a small change in the app, during hot reloading? I’ve noticed that in pure rn projects usually making a small change results in a short refresh, however, when using cljs, the whole bundle is loaded evertime.

zendevil 2021-03-21T08:07:16.005800Z

@lepistane, I disabled “Fast refresh” by going to Device > Shake and then clicking “Disable Fast Refresh” in the emulator. But when I make changes in my code, they are not reflected in the app. What version of react native are you using? I’m using 0.63

lepistane 2021-03-21T10:42:07.006100Z

i dont think it's related to RN version, i think i am using 61 Do u have shadow-cljs/figwheel running in separate terminal? If u do once u 'save' ur changes they should be reflected in the app

zendevil 2021-03-21T10:59:42.006300Z

yes, the shadow-cljs files are definitely re-compiling upon save, but the “refreshing” never shows up in the app

lepistane 2021-03-21T11:13:52.006500Z

that's super weird i don't have that behavior sorry i can't help u

frankitox 2021-03-23T19:20:05.007500Z

Maybe, you don't have it configured properly @ps? https://gist.github.com/frankitox/d0c7ce67d3aad7da831be317a3d750ce is what I use in my project nowadays, It's pretty much Thomas Heller's example of shadow-cljs + rn.

👍 1
lepistane 2021-03-20T14:22:27.005500Z

yeah disable hot reloading in the emulator i forgot exact steps but it's control + m menu will appear disable hot reloading now ur refresh will be mega fast and no bundle reload