{"action":"created","issue":{"url":"https://api.github.com/repos/makeomatic/redux-connect/issues/57","repository_url":"https://api.github.com/repos/makeomatic/redux-connect","labels_url":"https://api.github.com/repos/makeomatic/redux-connect/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/makeomatic/redux-connect/issues/57/comments","events_url":"https://api.github.com/repos/makeomatic/redux-connect/issues/57/events","html_url":"https://github.com/makeomatic/redux-connect/issues/57","id":167792720,"number":57,"title":"Doesn't load data anymore after replacing redux-async-connect with redux-connect","user":{"login":"dj-hedgehog","id":7140800,"avatar_url":"https://avatars.githubusercontent.com/u/7140800?v=3","gravatar_id":"","url":"https://api.github.com/users/dj-hedgehog","html_url":"https://github.com/dj-hedgehog","followers_url":"https://api.github.com/users/dj-hedgehog/followers","following_url":"https://api.github.com/users/dj-hedgehog/following{/other_user}","gists_url":"https://api.github.com/users/dj-hedgehog/gists{/gist_id}","starred_url":"https://api.github.com/users/dj-hedgehog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dj-hedgehog/subscriptions","organizations_url":"https://api.github.com/users/dj-hedgehog/orgs","repos_url":"https://api.github.com/users/dj-hedgehog/repos","events_url":"https://api.github.com/users/dj-hedgehog/events{/privacy}","received_events_url":"https://api.github.com/users/dj-hedgehog/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-27T07:52:07Z","updated_at":"2016-07-27T07:59:47Z","closed_at":null,"body":"I'm trying to switch from `redux-async-connect` to `redux-connect`.\r\nI migrated as done in this PR https://github.com/erikras/react-redux-universal-hot-example/pull/1140\r\n\r\nThe problem is that once I replace all `from 'redux-async-connect` in `import` statements with `redux-connect` it doesn't fetch any data anymore.\r\n\r\nThis is part of an example page where I want to use `redux-connect`:\r\n\r\nimport React, {Component, PropTypes} from 'react';\r\nimport Helmet from 'react-helmet';\r\nimport { asyncConnect } from 'redux-async-connect';\r\nimport {connect} from 'react-redux';\r\n\r\n@asyncConnect([{\r\n  deferred: true,\r\n  promise: ({\r\n    store: {\r\n      dispatch,\r\n      getState,\r\n    }\r\n  }) => {\r\n    if (!isLoaded(getState())) {\r\n      return dispatch(load());\r\n    }\r\n  }\r\n}])\r\n@connect(\r\n  state => ({\r\n    items: state.invoice.data,\r\n    error: state.invoice.error,\r\n    loading: state.invoice.loading,\r\n    loaded: state.invoice.loaded,\r\n    messages: state.intl.messages,\r\n  }),\r\n  dispatch => ({dispatch})\r\n)"},"comment":{"url":"https://api.github.com/repos/makeomatic/redux-connect/issues/comments/235514190","html_url":"https://github.com/makeomatic/redux-connect/issues/57#issuecomment-235514190","issue_url":"https://api.github.com/repos/makeomatic/redux-connect/issues/57","id":235514190,"user":{"login":"SherClockHolmes","id":1152024,"avatar_url":"https://avatars.githubusercontent.com/u/1152024?v=3","gravatar_id":"","url":"https://api.github.com/users/SherClockHolmes","html_url":"https://github.com/SherClockHolmes","followers_url":"https://api.github.com/users/SherClockHolmes/followers","following_url":"https://api.github.com/users/SherClockHolmes/following{/other_user}","gists_url":"https://api.github.com/users/SherClockHolmes/gists{/gist_id}","starred_url":"https://api.github.com/users/SherClockHolmes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SherClockHolmes/subscriptions","organizations_url":"https://api.github.com/users/SherClockHolmes/orgs","repos_url":"https://api.github.com/users/SherClockHolmes/repos","events_url":"https://api.github.com/users/SherClockHolmes/events{/privacy}","received_events_url":"https://api.github.com/users/SherClockHolmes/received_events","type":"User","site_admin":false},"created_at":"2016-07-27T07:59:47Z","updated_at":"2016-07-27T07:59:47Z","body":"I am having a similar issue on the latest version, I reverted back to version 2.1.0 and it seems to work."}}
{"actor":{"display_login":"SherClockHolmes"}}