{"action":"closed","issue":{"url":"https://api.github.com/repos/reactjs/redux/issues/1804","repository_url":"https://api.github.com/repos/reactjs/redux","labels_url":"https://api.github.com/repos/reactjs/redux/issues/1804/labels{/name}","comments_url":"https://api.github.com/repos/reactjs/redux/issues/1804/comments","events_url":"https://api.github.com/repos/reactjs/redux/issues/1804/events","html_url":"https://github.com/reactjs/redux/issues/1804","id":160011241,"number":1804,"title":"Counter example HMR only works for React components but not for reducers","user":{"login":"philj0st","id":1699734,"avatar_url":"https://avatars.githubusercontent.com/u/1699734?v=3","gravatar_id":"","url":"https://api.github.com/users/philj0st","html_url":"https://github.com/philj0st","followers_url":"https://api.github.com/users/philj0st/followers","following_url":"https://api.github.com/users/philj0st/following{/other_user}","gists_url":"https://api.github.com/users/philj0st/gists{/gist_id}","starred_url":"https://api.github.com/users/philj0st/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philj0st/subscriptions","organizations_url":"https://api.github.com/users/philj0st/orgs","repos_url":"https://api.github.com/users/philj0st/repos","events_url":"https://api.github.com/users/philj0st/events{/privacy}","received_events_url":"https://api.github.com/users/philj0st/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/reactjs/redux/labels/examples","name":"examples","color":"006b75"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-13T18:09:49Z","updated_at":"2016-07-31T23:06:17Z","closed_at":"2016-07-31T23:06:17Z","body":"**What is the current behavior?**\r\n\r\nThe hot module reloading in the counter example only works for changes inside the react components but not for changes in the reducer. ex. if I change the `INCREMENT` action from `return state + 1` to `return state + 5` I get the following error:\r\n\r\n```\r\n[HMR] The following modules couldn't be hot updated: (Full reload needed)\r\nThis is usually because the modules which have changed (and their parents) do not know how to hot reload themselves. See http://webpack.github.io/docs/hot-module-replacement-with-webpack.html for more details.\r\nprocess-update.js?e13e:89 [HMR]  - ./reducers/index.js\r\n```\r\n\r\n**What is the expected behavior?**\r\nWouldn't it be nice to have changes in react components and reducers work with persistent state.\r\nOr would you say that's too confusing for a simple counter example .. but then again why is React HMR in there then?\r\n\r\n\r\n"}}
{"actor":{"display_login":"timdorr"}}