How to get updated app on reload in Figwheel?

101 Views Asked by At

Using Figwheel with cljs projects gives me unreliable caching. Sometimes saving the project doesn't load Figwheel, and then if I refresh the page, instead of loading the latest version of the app, it takes me to an earlier cached version of the app. How can I make caching more reliable in Figwheel, so that when I reload, I'm at the latest version of the app and not the old version?

1

There are 1 best solutions below

0
On

With Figwheel there are certain ways to structure your code to make it "reloadable". Your caching problems sound much like some internal state persists between changes. Check the documentation here for some tips: https://figwheel.org/docs/reloadable_code.html