{"action":"closed","issue":{"url":"https://api.github.com/repos/gaearon/redux/issues/202","labels_url":"https://api.github.com/repos/gaearon/redux/issues/202/labels{/name}","comments_url":"https://api.github.com/repos/gaearon/redux/issues/202/comments","events_url":"https://api.github.com/repos/gaearon/redux/issues/202/events","html_url":"https://github.com/gaearon/redux/issues/202","id":92468754,"number":202,"title":"Docs: Example of component that asks for data asynchonously","user":{"login":"bapti","id":1849893,"avatar_url":"https://avatars.githubusercontent.com/u/1849893?v=3","gravatar_id":"","url":"https://api.github.com/users/bapti","html_url":"https://github.com/bapti","followers_url":"https://api.github.com/users/bapti/followers","following_url":"https://api.github.com/users/bapti/following{/other_user}","gists_url":"https://api.github.com/users/bapti/gists{/gist_id}","starred_url":"https://api.github.com/users/bapti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bapti/subscriptions","organizations_url":"https://api.github.com/users/bapti/orgs","repos_url":"https://api.github.com/users/bapti/repos","events_url":"https://api.github.com/users/bapti/events{/privacy}","received_events_url":"https://api.github.com/users/bapti/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-01T19:40:48Z","updated_at":"2015-07-20T23:41:36Z","closed_at":"2015-07-20T23:41:36Z","body":"Hi, I'm coming to react new in the last week or so and I implemented a basic app with Redux.  In your docs you've got a section https://github.com/gaearon/redux#how-do-stores-actions-and-components-interact which I think describes what I'm trying to achieve.\r\n\r\nSay we have your counter component from an earlier example and there was an action called `fetchCountAsync` how would that tie in to the below example?  Sorry if I'm being dumb!\r\n\r\n```\r\n@connect(state => ({\r\n  counter: state.counter\r\n}))\r\nexport default class CounterApp {\r\n  render() {\r\n    const { counter, dispatch } = this.props;\r\n    const actionCreators = bindActionCreators(CounterActions, dispatch)\r\n    return (\r\n      <Counter counter={counter} {...actionCreators} />\r\n    );\r\n  }\r\n}\r\n```\r\n\r\nWhere should this be call for data be invoked? Is adding a constructor a good idea if that's possible with the scoping or should it be in the render function itself?\r\n\r\nThanks for any help!"}}