2 ms·
> Is there an implementation out there of hot reload that doesn't simply automate hitting the refresh key in the browser? Yes, there are some setups where the
by hk__2 5y ago
> Is there an implementation out there of hot reload that doesn't simply automate hitting the refresh key in the browser?
Yes, there are some setups where the code reloads but the state stays there. I’ve worked like this with Clojure/ClojureScript in the past; for example if you’re working on a pop-in that appears after a click on a button, with window.reload()-based hot reloads you have to click on the button each time you reload the code, whereas with a state-preserving hot reload you don’t. It’s very useful on SPAs.