async routes don't update changes in dev mode #8

Open
dwwoelfel opened this Issue Aug 23, 2012 · 1 comment

Comments

Projects
None yet
2 participants
@dwwoelfel

Changes to the body of defpage-async aren't reflected in the app when running in dev mode.

If I define the following route:

(defpage-async "/async-route" {} conn
  (on-receive conn (fn [msg] (println "hello"))))

and then change it to

(defpage-async "/async-route" {} conn
  (on-receive conn (fn [msg] (println msg))))

I'll still see hello printed out instead of the message. Is there any way to automatically reload the routes on new connections?

@andrewvc

This comment has been minimized.

Show comment
Hide comment
@andrewvc

andrewvc Aug 23, 2012

Owner

Unfortunately that is the case. TBH I'm not quite sure what the fix here is as I haven't delved into the guts of noir enough to see how they do it.

Patches would be very welcome :-D !

Owner

andrewvc commented Aug 23, 2012

Unfortunately that is the case. TBH I'm not quite sure what the fix here is as I haven't delved into the guts of noir enough to see how they do it.

Patches would be very welcome :-D !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment