{"action":"created","issue":{"url":"https://api.github.com/repos/loggur/react-redux-provide/issues/3","labels_url":"https://api.github.com/repos/loggur/react-redux-provide/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/loggur/react-redux-provide/issues/3/comments","events_url":"https://api.github.com/repos/loggur/react-redux-provide/issues/3/events","html_url":"https://github.com/loggur/react-redux-provide/issues/3","id":120647446,"number":3,"title":"Usage with Redux-router","user":{"login":"FabienMotte","id":662153,"avatar_url":"https://avatars.githubusercontent.com/u/662153?v=3","gravatar_id":"","url":"https://api.github.com/users/FabienMotte","html_url":"https://github.com/FabienMotte","followers_url":"https://api.github.com/users/FabienMotte/followers","following_url":"https://api.github.com/users/FabienMotte/following{/other_user}","gists_url":"https://api.github.com/users/FabienMotte/gists{/gist_id}","starred_url":"https://api.github.com/users/FabienMotte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FabienMotte/subscriptions","organizations_url":"https://api.github.com/users/FabienMotte/orgs","repos_url":"https://api.github.com/users/FabienMotte/repos","events_url":"https://api.github.com/users/FabienMotte/events{/privacy}","received_events_url":"https://api.github.com/users/FabienMotte/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-12-06T17:37:25Z","updated_at":"2015-12-25T13:08:16Z","closed_at":null,"body":"Hello !\r\n\r\nI was asking me if is it possible to make it work with Redux-router ?\r\nWhat value can I provide to React-redux `store` props ?\r\n```javascript\r\nimport React           from 'react'\r\nimport ReactDOM        from 'react-dom'\r\nimport { Provider }    from 'react-redux'\r\nimport { ReduxRouter } from 'redux-router'\r\nimport { store }       from 'helpers'\r\nimport routes          from './routes'\r\n\r\nReactDOM.render((\r\n  <Provider store={store()}>\r\n    <ReduxRouter>\r\n      {routes}\r\n    </ReduxRouter>\r\n  </Provider> ),\r\n  document.getElementById('root'))\r\n```\r\n\r\nCurrently, my `store` props is taking the returned object of this function :\r\n```javascript\r\nimport { compose, createStore, combineReducers, applyMiddleware } from 'redux'\r\nimport { reduxReactRouter, routerStateReducer } from 'redux-router'\r\nimport thunk from 'redux-thunk'\r\nimport createHistory from './history'\r\nimport * as reducers from '../reducers'\r\n\r\nconst storeEnhancers = [\r\n  reduxReactRouter({ createHistory })\r\n]\r\n\r\nconst combinedCreateStore = compose(...storeEnhancers)(createStore)\r\nconst finalCreateStore = applyMiddleware(thunk)(combinedCreateStore)\r\nconst rootReducer = combineReducers({\r\n  router: routerStateReducer,\r\n  ...reducers\r\n})\r\n\r\nexport default () => finalCreateStore(rootReducer)\r\n```\r\n\r\nDo I have to apply, for example, the `thunk` middleware to all of my providers ? Same with the `routerStateReducer` ?\r\n\r\nThanks for your answer !"},"comment":{"url":"https://api.github.com/repos/loggur/react-redux-provide/issues/comments/167234976","html_url":"https://github.com/loggur/react-redux-provide/issues/3#issuecomment-167234976","issue_url":"https://api.github.com/repos/loggur/react-redux-provide/issues/3","id":167234976,"user":{"login":"jugimaster","id":7930645,"avatar_url":"https://avatars.githubusercontent.com/u/7930645?v=3","gravatar_id":"","url":"https://api.github.com/users/jugimaster","html_url":"https://github.com/jugimaster","followers_url":"https://api.github.com/users/jugimaster/followers","following_url":"https://api.github.com/users/jugimaster/following{/other_user}","gists_url":"https://api.github.com/users/jugimaster/gists{/gist_id}","starred_url":"https://api.github.com/users/jugimaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jugimaster/subscriptions","organizations_url":"https://api.github.com/users/jugimaster/orgs","repos_url":"https://api.github.com/users/jugimaster/repos","events_url":"https://api.github.com/users/jugimaster/events{/privacy}","received_events_url":"https://api.github.com/users/jugimaster/received_events","type":"User","site_admin":false},"created_at":"2015-12-25T13:08:16Z","updated_at":"2015-12-25T13:08:16Z","body":"> auto-generated HOCs are responsible for updating the view of the component they're wrapped around\r\n\r\nWhat does \"updating the view\" mean? For starters, I don't know that React component's \"have a view\".\r\n\r\nI'm still getting to grips with Redux, and React-Redux _and_ React-Router, all at the same time, and together they're quite confusing. Especially when combined with all the Node-specific tools I _Do Not Want to touch_, but have to.\r\n\r\nAnyhow, for example when I read this:\r\n```\r\nThis small library allows you to:\r\n\r\n    Build your entire app's view layer first - i.e., all your components become as \"dumb\" as possible.\r\n\r\n    Decorate your components with @provide, which allows you to specify - as propTypes - exactly the data and actions said components need.\r\n\r\n    When mounting your app, assign providers to your components as necessary.\r\n```\r\nI'm left none the wiser. Basically what I want to know is:\r\n\r\n  - _**What**_ does it do?\r\n  - _**How**_ does it do it?\r\n  - _**Exactly**_ how do I use it?\r\n\r\nThen there's some \"List/Array\"-thingy-library that's used in your examples, and I have no clue what that does either, and how and why.\r\n"}}