{"action":"closed","issue":{"url":"https://api.github.com/repos/reactjs/react-redux/issues/673","repository_url":"https://api.github.com/repos/reactjs/react-redux","labels_url":"https://api.github.com/repos/reactjs/react-redux/issues/673/labels{/name}","comments_url":"https://api.github.com/repos/reactjs/react-redux/issues/673/comments","events_url":"https://api.github.com/repos/reactjs/react-redux/issues/673/events","html_url":"https://github.com/reactjs/react-redux/issues/673","id":221575620,"number":673,"title":"<Provider> does not support changing `store` on the fly.","user":{"login":"intermundos","id":16274871,"avatar_url":"https://avatars2.githubusercontent.com/u/16274871?v=3","gravatar_id":"","url":"https://api.github.com/users/intermundos","html_url":"https://github.com/intermundos","followers_url":"https://api.github.com/users/intermundos/followers","following_url":"https://api.github.com/users/intermundos/following{/other_user}","gists_url":"https://api.github.com/users/intermundos/gists{/gist_id}","starred_url":"https://api.github.com/users/intermundos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intermundos/subscriptions","organizations_url":"https://api.github.com/users/intermundos/orgs","repos_url":"https://api.github.com/users/intermundos/repos","events_url":"https://api.github.com/users/intermundos/events{/privacy}","received_events_url":"https://api.github.com/users/intermundos/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-04-13T14:12:39Z","updated_at":"2017-04-13T15:47:02Z","closed_at":"2017-04-13T15:47:02Z","body":"Hello!\r\n\r\nI receive following warning, even though I follow instructions as per https://github.com/reactjs/react-redux/releases/tag/v2.0.0.\r\n\r\n-- configureStore.js\r\n\r\n```js\r\nif (module.hot) {\r\n        console.log('module is hot')\r\n        module.hot.accept('../reducks', () => {\r\n            console.log('swapping reducers')\r\n            const newRootDuck = require('../reducks/index')\r\n            store.replaceReducer(newRootDuck)\r\n        })\r\n}\r\n```\r\n\r\nI get console logging \"module is hot\", but never \"swapping reducers\" and the the state is not changing, only after manual page refresh. \r\n\r\n-- index.js\r\n\r\n```js\r\nimport React from \"react\"\r\nimport ReactDOM from \"react-dom\"\r\nimport { AppContainer } from \"react-hot-loader\"\r\nimport configureStore        from 'logic/store/configureStore'\r\nconst store = configureStore();\r\n\r\nimport Root from \"./containers/Root\"\r\n\r\nconst render = App => {\r\n    ReactDOM.render(\r\n        <AppContainer>\r\n            <App store={ store }/>\r\n        </AppContainer>,\r\n        document.getElementById('entry')\r\n    )\r\n}\r\n\r\nrender(Root)\r\n\r\nif (module.hot) module.hot.accept(Root, () => render(Root))\r\n```\r\n\r\n-- Root.js\r\n```js\r\nimport React from 'react'\r\nimport { Provider }        from 'react-redux'\r\nimport { BrowserRouter as Router }         from 'react-router-dom'\r\nimport Test from '../components/test'\r\n\r\nconst Root = ({ store }) => (\r\n    <Provider store={ store }>\r\n        <Router history={ history }>\r\n            <div>\r\n                <Test/>\r\n            </div>\r\n        </Router>\r\n    </Provider>\r\n)\r\n\r\nexport default Root\r\n```\r\n\r\nPlease advise where to look and solve this issue. \r\n\r\nThanks in advance. "}}
{"actor":{"display_login":"timdorr"}}