Fork me on GitHub
#cljsrn
<
2021-03-20
>
zendevil.eth09:03:07

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.

lepistane14:03:27

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

zendevil.eth08:03:16

@U45SLGVHV, 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

lepistane10:03:07

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.eth10:03:42

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

lepistane11:03:52

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

frankitox19:03:05

Maybe, you don't have it configured properly @U01F1TM2FD5? 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.

👍 3