-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Hello! For some reason I'm struggling a bit with hot reloading code from repl in a new project setup (lein).
in user.clj
(reloaded.repl/set-init!
#(make-system {}))
but (reset) does not pick up changes (no change that I've could detect, after modifying stop and start component protoocols for ex, nor in web routes in the particular case I'm trying to impl)
Tried diffferent many things past in the hour (setting refresh dirs, using deref for the make-system symbol, etc) but the only way I managed to reload the code as I expected was to use this (refresh) function:
(defn refresh
[]
(tools-ns/refresh-all)
(reloaded.repl/set-init!
#(make-system {}))
(init)
(go))
Not sure if here is the best place to ask, but if you some have some tips or experiene with related issues, I'd appreciate :)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels