-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reloading not working as expected #12
Comments
Could you provide a little more information? What's in |
Hello James, 4 years after is never too late I guess... Environment (somewhat irrelevant in that case):
History
(set-init! #(new-system))
(go)
(defn new-system []
(prn "Recreating new system")
(component/system-map))
(reset)
ExpectationExpected to see Actual
ImpactWhile it's surprising, the workaround is quite simple : (reset)
(set-init! #(new-system))
(go)
|
Why doesn't the call to (init) inside reloaded.repl/init grab the updated version of new-system? |
Hello! For some reason I'm struggling a bit with hot reloading code from repl in a new project setup (lein).
in user.clj
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: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 :)
The text was updated successfully, but these errors were encountered: