{"action":"created","issue":{"url":"https://api.github.com/repos/erikras/react-redux-universal-hot-example/issues/254","labels_url":"https://api.github.com/repos/erikras/react-redux-universal-hot-example/issues/254/labels{/name}","comments_url":"https://api.github.com/repos/erikras/react-redux-universal-hot-example/issues/254/comments","events_url":"https://api.github.com/repos/erikras/react-redux-universal-hot-example/issues/254/events","html_url":"https://github.com/erikras/react-redux-universal-hot-example/issues/254","id":108797317,"number":254,"title":"Fetch data based in props from component","user":{"login":"sebas5384","id":97021,"avatar_url":"https://avatars.githubusercontent.com/u/97021?v=3","gravatar_id":"","url":"https://api.github.com/users/sebas5384","html_url":"https://github.com/sebas5384","followers_url":"https://api.github.com/users/sebas5384/followers","following_url":"https://api.github.com/users/sebas5384/following{/other_user}","gists_url":"https://api.github.com/users/sebas5384/gists{/gist_id}","starred_url":"https://api.github.com/users/sebas5384/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebas5384/subscriptions","organizations_url":"https://api.github.com/users/sebas5384/orgs","repos_url":"https://api.github.com/users/sebas5384/repos","events_url":"https://api.github.com/users/sebas5384/events{/privacy}","received_events_url":"https://api.github.com/users/sebas5384/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2015-09-29T05:32:30Z","updated_at":"2015-11-10T18:14:27Z","closed_at":null,"body":"There are some cases when the static fetch data is limited to whats on the state to decide what action or what arguments should be passed to the action.\r\n\r\nFor example, let's say you want to use some component's property value as an argument to dispatch an action. Today with the static fetching we cant due at that time we don't have any information about the actual component being rendered.\r\n\r\nBut! there's another approach, the \"Redux resolver\" https://github.com/savemysmartphone/universal-redux-boilerplate/blob/master/shared/redux-resolver.js\r\nI implement it into this example and it worked like a charm, but, I wonder if I'm missing something, maybe something related to the transitionHook, I don't know.\r\n\r\nWell, if there's interest (even from me) I have already made the implementation which I could share.\r\n\r\nCheers!"},"comment":{"url":"https://api.github.com/repos/erikras/react-redux-universal-hot-example/issues/comments/155518898","html_url":"https://github.com/erikras/react-redux-universal-hot-example/issues/254#issuecomment-155518898","issue_url":"https://api.github.com/repos/erikras/react-redux-universal-hot-example/issues/254","id":155518898,"user":{"login":"frankleng","id":6145910,"avatar_url":"https://avatars.githubusercontent.com/u/6145910?v=3","gravatar_id":"","url":"https://api.github.com/users/frankleng","html_url":"https://github.com/frankleng","followers_url":"https://api.github.com/users/frankleng/followers","following_url":"https://api.github.com/users/frankleng/following{/other_user}","gists_url":"https://api.github.com/users/frankleng/gists{/gist_id}","starred_url":"https://api.github.com/users/frankleng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frankleng/subscriptions","organizations_url":"https://api.github.com/users/frankleng/orgs","repos_url":"https://api.github.com/users/frankleng/repos","events_url":"https://api.github.com/users/frankleng/events{/privacy}","received_events_url":"https://api.github.com/users/frankleng/received_events","type":"User","site_admin":false},"created_at":"2015-11-10T18:14:27Z","updated_at":"2015-11-10T18:14:27Z","body":"@sebas5384 @quicksnap agreed. esp that fetchData() should only be concerned by route params. \r\nIn my app, if we need prefetching, we make it so as a route param or query string."}}