{"action":"created","issue":{"url":"https://api.github.com/repos/react-dnd/react-dnd/issues/373","repository_url":"https://api.github.com/repos/react-dnd/react-dnd","labels_url":"https://api.github.com/repos/react-dnd/react-dnd/issues/373/labels{/name}","comments_url":"https://api.github.com/repos/react-dnd/react-dnd/issues/373/comments","events_url":"https://api.github.com/repos/react-dnd/react-dnd/issues/373/events","html_url":"https://github.com/react-dnd/react-dnd/issues/373","id":132405763,"node_id":"MDU6SXNzdWUxMzI0MDU3NjM=","number":373,"title":"Using redux connect alongside DropTarget mapping","user":{"login":"IljaDaderko","id":3154053,"node_id":"MDQ6VXNlcjMxNTQwNTM=","avatar_url":"https://avatars2.githubusercontent.com/u/3154053?v=4","gravatar_id":"","url":"https://api.github.com/users/IljaDaderko","html_url":"https://github.com/IljaDaderko","followers_url":"https://api.github.com/users/IljaDaderko/followers","following_url":"https://api.github.com/users/IljaDaderko/following{/other_user}","gists_url":"https://api.github.com/users/IljaDaderko/gists{/gist_id}","starred_url":"https://api.github.com/users/IljaDaderko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IljaDaderko/subscriptions","organizations_url":"https://api.github.com/users/IljaDaderko/orgs","repos_url":"https://api.github.com/users/IljaDaderko/repos","events_url":"https://api.github.com/users/IljaDaderko/events{/privacy}","received_events_url":"https://api.github.com/users/IljaDaderko/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-02-09T12:15:10Z","updated_at":"2018-06-18T16:17:42Z","closed_at":"2016-02-14T00:37:57Z","author_association":"NONE","body":"I'm trying to figure out the correct way to hook up redux to my component that also happens to be a drop target.\n\n`export default DropTarget(dragTypes, storyTarget, collect)(connect(mapStateToProps)(StoryEditor));`\n\nThis is how I am connecting them at the moment, it seems to work, but I wanted to verify that this is correct.\n"},"comment":{"url":"https://api.github.com/repos/react-dnd/react-dnd/issues/comments/398110779","html_url":"https://github.com/react-dnd/react-dnd/issues/373#issuecomment-398110779","issue_url":"https://api.github.com/repos/react-dnd/react-dnd/issues/373","id":398110779,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODExMDc3OQ==","user":{"login":"talentedaamer","id":2241691,"node_id":"MDQ6VXNlcjIyNDE2OTE=","avatar_url":"https://avatars3.githubusercontent.com/u/2241691?v=4","gravatar_id":"","url":"https://api.github.com/users/talentedaamer","html_url":"https://github.com/talentedaamer","followers_url":"https://api.github.com/users/talentedaamer/followers","following_url":"https://api.github.com/users/talentedaamer/following{/other_user}","gists_url":"https://api.github.com/users/talentedaamer/gists{/gist_id}","starred_url":"https://api.github.com/users/talentedaamer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talentedaamer/subscriptions","organizations_url":"https://api.github.com/users/talentedaamer/orgs","repos_url":"https://api.github.com/users/talentedaamer/repos","events_url":"https://api.github.com/users/talentedaamer/events{/privacy}","received_events_url":"https://api.github.com/users/talentedaamer/received_events","type":"User","site_admin":false},"created_at":"2018-06-18T16:17:42Z","updated_at":"2018-06-18T16:17:42Z","author_association":"NONE","body":"```\r\nBuilderArea.propTypes = {\r\n  addPanel: PropTypes.func.isRequired\r\n};\r\n\r\nconst mapStateToProps = state => ({\r\n  panels: state.panels\r\n});\r\n\r\nexport default compose(\r\n  DropTarget(Types.PANEL_CARD, builderAreaTarget, (connect, monitor) => ({\r\n    connectDropTarget: connect.dropTarget(),\r\n    isOver: monitor.isOver()\r\n  })),\r\n  connect(\r\n    mapStateToProps,\r\n    { addPanel }\r\n  )\r\n)(BuilderArea);\r\n```"}}
{"actor":{"display_login":"talentedaamer"}}