{"action":"created","issue":{"url":"https://api.github.com/repos/atlassian/react-beautiful-dnd/issues/120","repository_url":"https://api.github.com/repos/atlassian/react-beautiful-dnd","labels_url":"https://api.github.com/repos/atlassian/react-beautiful-dnd/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/atlassian/react-beautiful-dnd/issues/120/comments","events_url":"https://api.github.com/repos/atlassian/react-beautiful-dnd/issues/120/events","html_url":"https://github.com/atlassian/react-beautiful-dnd/issues/120","id":260716660,"number":120,"title":"Architectural Question","user":{"login":"OmriAharon","id":12033595,"avatar_url":"https://avatars3.githubusercontent.com/u/12033595?v=4","gravatar_id":"","url":"https://api.github.com/users/OmriAharon","html_url":"https://github.com/OmriAharon","followers_url":"https://api.github.com/users/OmriAharon/followers","following_url":"https://api.github.com/users/OmriAharon/following{/other_user}","gists_url":"https://api.github.com/users/OmriAharon/gists{/gist_id}","starred_url":"https://api.github.com/users/OmriAharon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OmriAharon/subscriptions","organizations_url":"https://api.github.com/users/OmriAharon/orgs","repos_url":"https://api.github.com/users/OmriAharon/repos","events_url":"https://api.github.com/users/OmriAharon/events{/privacy}","received_events_url":"https://api.github.com/users/OmriAharon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-09-26T18:04:10Z","updated_at":"2017-09-27T20:24:07Z","closed_at":"2017-09-27T09:12:06Z","author_association":"NONE","body":"First of all - great library! Thank you for this.\r\n\r\nOut of all the examples I've seen, the Droppable/Draggables existed in the same place with the DragDropContext - thus making reordering logic very straightforward.\r\n\r\nIn my app, as you suggested, I would place the `DragDropContext` in `App.js` - topmost file that renders the app (well, almost, main route that envelops all others).\r\n\r\nThe drag & drop part, though, exists in some of the other routes, and could even get to up to 10 hierarchies down the chain. What is your suggested way to use the `onDragEnd`, since you suggest to never change that function once it's registered? \r\nIdeally, I'd like this to reside as close as possible to the drag & drop components.\r\n\r\nAs I see it today, my `onDragEnd` is in `App.js`, and doing the logic with the list of items which are so far below looks very out of place. I'd have to access redux and do the changes there. If I have multiple drag & drop areas in my app, I'd have to do a switch case to recognize where the drag & drop is happening.\r\n\r\nHow do you suggest to handle this real-world scenario?"},"comment":{"url":"https://api.github.com/repos/atlassian/react-beautiful-dnd/issues/comments/332644180","html_url":"https://github.com/atlassian/react-beautiful-dnd/issues/120#issuecomment-332644180","issue_url":"https://api.github.com/repos/atlassian/react-beautiful-dnd/issues/120","id":332644180,"user":{"login":"ianschmitz","id":6355370,"avatar_url":"https://avatars1.githubusercontent.com/u/6355370?v=4","gravatar_id":"","url":"https://api.github.com/users/ianschmitz","html_url":"https://github.com/ianschmitz","followers_url":"https://api.github.com/users/ianschmitz/followers","following_url":"https://api.github.com/users/ianschmitz/following{/other_user}","gists_url":"https://api.github.com/users/ianschmitz/gists{/gist_id}","starred_url":"https://api.github.com/users/ianschmitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianschmitz/subscriptions","organizations_url":"https://api.github.com/users/ianschmitz/orgs","repos_url":"https://api.github.com/users/ianschmitz/repos","events_url":"https://api.github.com/users/ianschmitz/events{/privacy}","received_events_url":"https://api.github.com/users/ianschmitz/received_events","type":"User","site_admin":false},"created_at":"2017-09-27T20:24:07Z","updated_at":"2017-09-27T20:24:07Z","author_association":"NONE","body":"@alexreardon How would you suggest handling the case for users without Redux/MobX etc? I share the same scenario as @OmriAharon.\r\n\r\nThanks!"}}
{"actor":{"display_login":"ianschmitz"}}