{"action":"created","issue":{"url":"https://api.github.com/repos/fritz-c/react-sortable-tree/issues/267","repository_url":"https://api.github.com/repos/fritz-c/react-sortable-tree","labels_url":"https://api.github.com/repos/fritz-c/react-sortable-tree/issues/267/labels{/name}","comments_url":"https://api.github.com/repos/fritz-c/react-sortable-tree/issues/267/comments","events_url":"https://api.github.com/repos/fritz-c/react-sortable-tree/issues/267/events","html_url":"https://github.com/fritz-c/react-sortable-tree/issues/267","id":302760907,"number":267,"title":"You may not call monitor.canDrop() inside your canDrop() implementation","user":{"login":"zourbuth","id":451977,"avatar_url":"https://avatars3.githubusercontent.com/u/451977?v=4","gravatar_id":"","url":"https://api.github.com/users/zourbuth","html_url":"https://github.com/zourbuth","followers_url":"https://api.github.com/users/zourbuth/followers","following_url":"https://api.github.com/users/zourbuth/following{/other_user}","gists_url":"https://api.github.com/users/zourbuth/gists{/gist_id}","starred_url":"https://api.github.com/users/zourbuth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zourbuth/subscriptions","organizations_url":"https://api.github.com/users/zourbuth/orgs","repos_url":"https://api.github.com/users/zourbuth/repos","events_url":"https://api.github.com/users/zourbuth/events{/privacy}","received_events_url":"https://api.github.com/users/zourbuth/received_events","type":"User","site_admin":false},"labels":[{"id":412402173,"url":"https://api.github.com/repos/fritz-c/react-sortable-tree/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-06T16:03:58Z","updated_at":"2018-03-12T20:29:40Z","closed_at":null,"author_association":"NONE","body":"In `canDrop`, before returning `false`, we want to update state to display notification about why it can't be dropped, but got this error:\r\n\r\n`Uncaught Error: You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target-monitor.html`\r\n\r\nIs there a way to deal with it or may be a callback function?"},"comment":{"url":"https://api.github.com/repos/fritz-c/react-sortable-tree/issues/comments/372451783","html_url":"https://github.com/fritz-c/react-sortable-tree/issues/267#issuecomment-372451783","issue_url":"https://api.github.com/repos/fritz-c/react-sortable-tree/issues/267","id":372451783,"user":{"login":"wuweiweiwu","id":35270620,"avatar_url":"https://avatars3.githubusercontent.com/u/35270620?v=4","gravatar_id":"","url":"https://api.github.com/users/wuweiweiwu","html_url":"https://github.com/wuweiweiwu","followers_url":"https://api.github.com/users/wuweiweiwu/followers","following_url":"https://api.github.com/users/wuweiweiwu/following{/other_user}","gists_url":"https://api.github.com/users/wuweiweiwu/gists{/gist_id}","starred_url":"https://api.github.com/users/wuweiweiwu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wuweiweiwu/subscriptions","organizations_url":"https://api.github.com/users/wuweiweiwu/orgs","repos_url":"https://api.github.com/users/wuweiweiwu/repos","events_url":"https://api.github.com/users/wuweiweiwu/events{/privacy}","received_events_url":"https://api.github.com/users/wuweiweiwu/received_events","type":"User","site_admin":false},"created_at":"2018-03-12T20:29:40Z","updated_at":"2018-03-12T20:29:40Z","author_association":"COLLABORATOR","body":"@zourbuth this issue is confirmed and I think its due to how we bind `this` when we create `DropTarget`. I will have to investigate more later"}}
{"actor":{"display_login":"wuweiweiwu"}}