{"action":"closed","issue":{"url":"https://api.github.com/repos/reactGo/reactGo/issues/900","repository_url":"https://api.github.com/repos/reactGo/reactGo","labels_url":"https://api.github.com/repos/reactGo/reactGo/issues/900/labels{/name}","comments_url":"https://api.github.com/repos/reactGo/reactGo/issues/900/comments","events_url":"https://api.github.com/repos/reactGo/reactGo/issues/900/events","html_url":"https://github.com/reactGo/reactGo/issues/900","id":236483010,"number":900,"title":"Question: How to render fetched data?","user":{"login":"stefvw93","id":13518365,"avatar_url":"https://avatars3.githubusercontent.com/u/13518365?v=3","gravatar_id":"","url":"https://api.github.com/users/stefvw93","html_url":"https://github.com/stefvw93","followers_url":"https://api.github.com/users/stefvw93/followers","following_url":"https://api.github.com/users/stefvw93/following{/other_user}","gists_url":"https://api.github.com/users/stefvw93/gists{/gist_id}","starred_url":"https://api.github.com/users/stefvw93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefvw93/subscriptions","organizations_url":"https://api.github.com/users/stefvw93/orgs","repos_url":"https://api.github.com/users/stefvw93/repos","events_url":"https://api.github.com/users/stefvw93/events{/privacy}","received_events_url":"https://api.github.com/users/stefvw93/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-06-16T13:28:20Z","updated_at":"2017-06-17T08:51:57Z","closed_at":"2017-06-17T08:51:57Z","body":"### Description\r\n- Type: Question\r\n\r\n-----------------------------------------------------------------\r\n\r\n## Question\r\n\r\n**How to pass fetched data to state?**\r\n\r\nI'm new to react-redux. After looking at the reactGo example code, I still have no clue whatsoever about how, for example, the topics data is rendered into the Vote page.\r\n\r\nI was succesful in creating new database controllers and models, and fetching their data with the Router property ```fetchData={fetchMyData}```. But I don't understand how I will get the fetched data in my view?\r\n\r\nLooking at app/containers/Vote.jsx, I see this: ```const {newTopic, topics, typing, createTopic, destroyTopic, incrementCount, decrementCount } = this.props;``` @ line 16.\r\n\r\nWHERE DOES TOPICS VARIABLE COME FROM? I'm really really confused at this point and the readme or docs don't explain it very well.\r\n\r\nCan somebody help me out please?\r\n\r\nEdit: I guess I'm basically asking how to save fetched data into store"}}
{"actor":{"display_login":"stefvw93"}}