{"action":"created","issue":{"url":"https://api.github.com/repos/omcljs/om/issues/336","labels_url":"https://api.github.com/repos/omcljs/om/issues/336/labels{/name}","comments_url":"https://api.github.com/repos/omcljs/om/issues/336/comments","events_url":"https://api.github.com/repos/omcljs/om/issues/336/events","html_url":"https://github.com/omcljs/om/issues/336","id":59348375,"number":336,"title":"Problem rendering data set in will-mount","user":{"login":"bilus","id":1025537,"avatar_url":"https://avatars.githubusercontent.com/u/1025537?v=3","gravatar_id":"","url":"https://api.github.com/users/bilus","html_url":"https://github.com/bilus","followers_url":"https://api.github.com/users/bilus/followers","following_url":"https://api.github.com/users/bilus/following{/other_user}","gists_url":"https://api.github.com/users/bilus/gists{/gist_id}","starred_url":"https://api.github.com/users/bilus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bilus/subscriptions","organizations_url":"https://api.github.com/users/bilus/orgs","repos_url":"https://api.github.com/users/bilus/repos","events_url":"https://api.github.com/users/bilus/events{/privacy}","received_events_url":"https://api.github.com/users/bilus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-02-28T16:54:13Z","updated_at":"2015-04-08T20:45:04Z","closed_at":null,"body":"Hi,\r\n\r\nI've upgraded to the latest version of om (0.8.8) and the following snippet no longer works:\r\n\r\n```clojure\r\n(def app-state (atom {}))\r\n\r\n(defn sample\r\n  [app-state owner]\r\n  (reify\r\n    om/IWillMount\r\n    (will-mount [_]\r\n                (om/transact! app-state (fn [app-state]\r\n                                          (assoc-in app-state [:whatever] \"something\"))))\r\n    om/IRender\r\n    (render [_]\r\n            (dom/div {} (:whatever app-state))))\r\n\r\n(defn main []\r\n  (om/root\r\n    sample\r\n    app-state\r\n    {:target (. js/document (getElementById \"app\"))}))\r\n```\r\n\r\n(it renders nothing after a browser refresh)\r\n\r\nwhen you change the `render` function to what you see below, it works correctly:\r\n\r\n```clojure\r\n(render [_]\r\n            (dom/div {} (:whatever @app-state)))\r\n```\r\n\r\nIf you have trouble reproducing it, please let me know; the project has additional dependencies and while I've tried to distill it as much as possible, things happen."},"comment":{"url":"https://api.github.com/repos/omcljs/om/issues/comments/91032149","html_url":"https://github.com/omcljs/om/issues/336#issuecomment-91032149","issue_url":"https://api.github.com/repos/omcljs/om/issues/336","id":91032149,"user":{"login":"cedrictools","id":7687208,"avatar_url":"https://avatars.githubusercontent.com/u/7687208?v=3","gravatar_id":"","url":"https://api.github.com/users/cedrictools","html_url":"https://github.com/cedrictools","followers_url":"https://api.github.com/users/cedrictools/followers","following_url":"https://api.github.com/users/cedrictools/following{/other_user}","gists_url":"https://api.github.com/users/cedrictools/gists{/gist_id}","starred_url":"https://api.github.com/users/cedrictools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cedrictools/subscriptions","organizations_url":"https://api.github.com/users/cedrictools/orgs","repos_url":"https://api.github.com/users/cedrictools/repos","events_url":"https://api.github.com/users/cedrictools/events{/privacy}","received_events_url":"https://api.github.com/users/cedrictools/received_events","type":"User","site_admin":false},"created_at":"2015-04-08T20:45:04Z","updated_at":"2015-04-08T20:45:04Z","body":"You're right, on every render, missed that and it's really different. Thanks for clarifying that point and sorry for the noise.\r\n"}}