{"action":"created","issue":{"url":"https://api.github.com/repos/reagent-project/reagent/issues/112","labels_url":"https://api.github.com/repos/reagent-project/reagent/issues/112/labels{/name}","comments_url":"https://api.github.com/repos/reagent-project/reagent/issues/112/comments","events_url":"https://api.github.com/repos/reagent-project/reagent/issues/112/events","html_url":"https://github.com/reagent-project/reagent/issues/112","id":62054230,"number":112,"title":"Reloading with figwheel is inconsistent ","user":{"login":"torbjornvatn","id":4453,"avatar_url":"https://avatars.githubusercontent.com/u/4453?v=3","gravatar_id":"","url":"https://api.github.com/users/torbjornvatn","html_url":"https://github.com/torbjornvatn","followers_url":"https://api.github.com/users/torbjornvatn/followers","following_url":"https://api.github.com/users/torbjornvatn/following{/other_user}","gists_url":"https://api.github.com/users/torbjornvatn/gists{/gist_id}","starred_url":"https://api.github.com/users/torbjornvatn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torbjornvatn/subscriptions","organizations_url":"https://api.github.com/users/torbjornvatn/orgs","repos_url":"https://api.github.com/users/torbjornvatn/repos","events_url":"https://api.github.com/users/torbjornvatn/events{/privacy}","received_events_url":"https://api.github.com/users/torbjornvatn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-03-16T11:45:31Z","updated_at":"2015-03-17T14:13:48Z","closed_at":null,"body":"I'm trying to do somthing similar to the input field example at http://reagent-project.github.io/ but the figwheel reloading is not working as expected.\r\n\r\nWhen I do it like this: \r\n\r\n```clojure\r\n(defn search-component []\r\n  (let [searched-for (atom \"rive\")]\r\n    (fn []\r\n      [:div\r\n       [:p \"Du er på jakt etter en: \" @searched-for]\r\n       [:p \"Hva vil du låne? \" \r\n        [:input {:type \"text\"\r\n                 :value @searched-for\r\n                 :on-change #(reset! searched-for (-> % .-target .-value))}]]])))\r\n\r\n(defn home-page []\r\n  [search-component])\r\n```\r\nChanging the text in the :p triggers a figwheel reload and rerendering. \r\n\r\nIf I do it like this however:\r\n\r\n```clojure \r\n(defn home-page []\r\n  (let [searched-for (atom \"rive\")]\r\n    (fn []\r\n      [:div\r\n       [:p \"Du er på jakt etter en: \" @searched-for]\r\n       [:p \"Hva vil du låne? \" \r\n        [:input {:type \"text\"\r\n                 :value @searched-for\r\n                 :on-change #(reset! searched-for (-> % .-target .-value))}]]])))\r\n```\r\na text change will trigger a figwheel reload, but the change doesn't appear on the webpage.\r\n\r\n**Any advice?**\r\n\r\nPs: I'm having the same issues if I copy/paste the example from the webpage as well."},"comment":{"url":"https://api.github.com/repos/reagent-project/reagent/issues/comments/82374291","html_url":"https://github.com/reagent-project/reagent/issues/112#issuecomment-82374291","issue_url":"https://api.github.com/repos/reagent-project/reagent/issues/112","id":82374291,"user":{"login":"torbjornvatn","id":4453,"avatar_url":"https://avatars.githubusercontent.com/u/4453?v=3","gravatar_id":"","url":"https://api.github.com/users/torbjornvatn","html_url":"https://github.com/torbjornvatn","followers_url":"https://api.github.com/users/torbjornvatn/followers","following_url":"https://api.github.com/users/torbjornvatn/following{/other_user}","gists_url":"https://api.github.com/users/torbjornvatn/gists{/gist_id}","starred_url":"https://api.github.com/users/torbjornvatn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torbjornvatn/subscriptions","organizations_url":"https://api.github.com/users/torbjornvatn/orgs","repos_url":"https://api.github.com/users/torbjornvatn/repos","events_url":"https://api.github.com/users/torbjornvatn/events{/privacy}","received_events_url":"https://api.github.com/users/torbjornvatn/received_events","type":"User","site_admin":false},"created_at":"2015-03-17T14:13:48Z","updated_at":"2015-03-17T14:13:48Z","body":"@holmsand https://github.com/reagent-project/reagent/blob/master/src/reagent/core.cljs#L100-L104 refers to using ```(render [#'foo])``` to mount components, and as the ```init!```function was the only place I could find a ```reagent/render``` call I thought it would do the trick.\r\n\r\nBut now I see that this function of course is called only at startup, so I'm not sure where to apply the ```#'```trick to make it affect the ```force-update-all``` call from figwheel"}}