reagent-project / reagent-template

A Leiningen template for projects using Reagent.
MIT License
394 stars 55 forks source link

Document how to use Clojure auto-reloading #118

Closed drpepper closed 8 years ago

drpepper commented 8 years ago

Newbie problem: It's obvious how auto-reload for ClojureScript works via Figwheel because the template tells you to run it. But I can't figure out how to get the Clojure code to reload automatically, though I see ring.middleware.reload referenced in the project.

It's probably obvious to Clojure users, but not to me!

yogthos commented 8 years ago

The Clojure code should reload when the app is run using lein run, the reload middleware watches for changes in the namespaces and tries to recompile them as needed.

drpepper commented 8 years ago

Ok, got it! In fact it was working just fine, but because nothing was written to the console I hadn't realized. Thanks for the help.

yogthos commented 8 years ago

no prob :)