{"action":"created","issue":{"url":"https://api.github.com/repos/Day8/re-frame/issues/4","labels_url":"https://api.github.com/repos/Day8/re-frame/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/Day8/re-frame/issues/4/comments","events_url":"https://api.github.com/repos/Day8/re-frame/issues/4/events","html_url":"https://github.com/Day8/re-frame/issues/4","id":58533563,"number":4,"title":"Dispatch handler's first argument parameter isn't a dereffed atom value","user":{"login":"rej156","id":3833339,"avatar_url":"https://avatars.githubusercontent.com/u/3833339?v=3","gravatar_id":"","url":"https://api.github.com/users/rej156","html_url":"https://github.com/rej156","followers_url":"https://api.github.com/users/rej156/followers","following_url":"https://api.github.com/users/rej156/following{/other_user}","gists_url":"https://api.github.com/users/rej156/gists{/gist_id}","starred_url":"https://api.github.com/users/rej156/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rej156/subscriptions","organizations_url":"https://api.github.com/users/rej156/orgs","repos_url":"https://api.github.com/users/rej156/repos","events_url":"https://api.github.com/users/rej156/events{/privacy}","received_events_url":"https://api.github.com/users/rej156/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-23T01:36:09Z","updated_at":"2015-02-23T02:00:06Z","closed_at":null,"body":"According to the docs,\r\n\"An event handler is a pure function of two parameters:  current value in app-db. Note: that's the map in app-db, not the atom itself. 2 an event (represented as a vector)\"\r\n\r\n(defn handle-delete\r\n  [app-state [_ cid]]          ;; notice how event vector is destructured -- 2nd parameter\r\n  (.log js/console app-state))\r\n\r\napp-state currently returns a reagent ratom.\r\n\r\nThis caused me major headaches understanding why \r\n(assoc app-state :first \"hello)\r\nwouldn't work.\r\n\r\nAlso, any idea when re-frame will be up on clojars?"},"comment":{"url":"https://api.github.com/repos/Day8/re-frame/issues/comments/75479908","html_url":"https://github.com/Day8/re-frame/issues/4#issuecomment-75479908","issue_url":"https://api.github.com/repos/Day8/re-frame/issues/4","id":75479908,"user":{"login":"rej156","id":3833339,"avatar_url":"https://avatars.githubusercontent.com/u/3833339?v=3","gravatar_id":"","url":"https://api.github.com/users/rej156","html_url":"https://github.com/rej156","followers_url":"https://api.github.com/users/rej156/followers","following_url":"https://api.github.com/users/rej156/following{/other_user}","gists_url":"https://api.github.com/users/rej156/gists{/gist_id}","starred_url":"https://api.github.com/users/rej156/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rej156/subscriptions","organizations_url":"https://api.github.com/users/rej156/orgs","repos_url":"https://api.github.com/users/rej156/repos","events_url":"https://api.github.com/users/rej156/events{/privacy}","received_events_url":"https://api.github.com/users/rej156/received_events","type":"User","site_admin":false},"created_at":"2015-02-23T02:00:06Z","updated_at":"2015-02-23T02:00:06Z","body":"Hey Mike,\r\n\r\nThanks for the reply!\r\nOW. My head hurt working out how to use the lein git-deps with clojurescript.\r\nGiving the heads up for you to make it clear in the README that:\r\n\"re-frame.subs/register\r\nre-frame.handlers/register\"\r\ndon't coincide with each other etc!\r\n\r\nSorry was just hyped up learning about Elm + FRP with statecharts today!\r\nEnded up reading and revamping my whole dissertation project because I discovered your README!"}}