{"action":"created","issue":{"url":"https://api.github.com/repos/gaearon/redux/issues/231","labels_url":"https://api.github.com/repos/gaearon/redux/issues/231/labels{/name}","comments_url":"https://api.github.com/repos/gaearon/redux/issues/231/comments","events_url":"https://api.github.com/repos/gaearon/redux/issues/231/events","html_url":"https://github.com/gaearon/redux/issues/231","id":93744837,"number":231,"title":"Initial data loading and reacting to server notifications","user":{"login":"gyzerok","id":1706020,"avatar_url":"https://avatars.githubusercontent.com/u/1706020?v=3","gravatar_id":"","url":"https://api.github.com/users/gyzerok","html_url":"https://github.com/gyzerok","followers_url":"https://api.github.com/users/gyzerok/followers","following_url":"https://api.github.com/users/gyzerok/following{/other_user}","gists_url":"https://api.github.com/users/gyzerok/gists{/gist_id}","starred_url":"https://api.github.com/users/gyzerok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gyzerok/subscriptions","organizations_url":"https://api.github.com/users/gyzerok/orgs","repos_url":"https://api.github.com/users/gyzerok/repos","events_url":"https://api.github.com/users/gyzerok/events{/privacy}","received_events_url":"https://api.github.com/users/gyzerok/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-08T09:25:36Z","updated_at":"2015-07-09T04:32:37Z","closed_at":"2015-07-08T09:42:36Z","body":"As I've understood for now there is no way to call dispatch from outside of view or action creator.\r\nSo I'm not quiet understand how should I deal with initial data loading and in case when server emits an event and I have to call action from API. "},"comment":{"url":"https://api.github.com/repos/gaearon/redux/issues/comments/119814898","html_url":"https://github.com/gaearon/redux/issues/231#issuecomment-119814898","issue_url":"https://api.github.com/repos/gaearon/redux/issues/231","id":119814898,"user":{"login":"gyzerok","id":1706020,"avatar_url":"https://avatars.githubusercontent.com/u/1706020?v=3","gravatar_id":"","url":"https://api.github.com/users/gyzerok","html_url":"https://github.com/gyzerok","followers_url":"https://api.github.com/users/gyzerok/followers","following_url":"https://api.github.com/users/gyzerok/following{/other_user}","gists_url":"https://api.github.com/users/gyzerok/gists{/gist_id}","starred_url":"https://api.github.com/users/gyzerok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gyzerok/subscriptions","organizations_url":"https://api.github.com/users/gyzerok/orgs","repos_url":"https://api.github.com/users/gyzerok/repos","events_url":"https://api.github.com/users/gyzerok/events{/privacy}","received_events_url":"https://api.github.com/users/gyzerok/received_events","type":"User","site_admin":false},"created_at":"2015-07-09T04:32:37Z","updated_at":"2015-07-09T04:32:37Z","body":"@acdlite mb I did no get it right.. I'm taking about calling actions like ```action()``` from anywhere. Like we do after bindActionCreators in the view. For now if I have to call an action from my API wrapper I need to do: move redux creation into a separate file, import dispatch, import action. And my point of view is: why do we need 2 function in place of one if we always have to \"call them together\"?"}}