{"action":"created","issue":{"url":"https://api.github.com/repos/JedWatson/react-codemirror/issues/36","repository_url":"https://api.github.com/repos/JedWatson/react-codemirror","labels_url":"https://api.github.com/repos/JedWatson/react-codemirror/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/JedWatson/react-codemirror/issues/36/comments","events_url":"https://api.github.com/repos/JedWatson/react-codemirror/issues/36/events","html_url":"https://github.com/JedWatson/react-codemirror/issues/36","id":132857230,"number":36,"title":"differentiate onChange vs. manual input?","user":{"login":"Glench","id":451461,"avatar_url":"https://avatars1.githubusercontent.com/u/451461?v=3","gravatar_id":"","url":"https://api.github.com/users/Glench","html_url":"https://github.com/Glench","followers_url":"https://api.github.com/users/Glench/followers","following_url":"https://api.github.com/users/Glench/following{/other_user}","gists_url":"https://api.github.com/users/Glench/gists{/gist_id}","starred_url":"https://api.github.com/users/Glench/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Glench/subscriptions","organizations_url":"https://api.github.com/users/Glench/orgs","repos_url":"https://api.github.com/users/Glench/repos","events_url":"https://api.github.com/users/Glench/events{/privacy}","received_events_url":"https://api.github.com/users/Glench/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-02-11T00:17:57Z","updated_at":"2017-06-02T11:45:51Z","closed_at":null,"body":"Hi there! I would just like to start by saying thanks! React-Codemirror has been awesome. Sometimes I wish instead of bug reports there was a thing on github for \"appreciation reports\".\n\nAnyway, a thing I just ran into is that it seems the onChange handler gets called both when a user is editing a codemirror and also when changing the value from React (which I believe uses cm.setValue()). I was wondering if it's worth differentiating those two cases in this library. Maybe it isn't, but it might at least be specified in the docs. Either way, I'm going to figure out a way around it for my use case so that I can tell when a user is doing something in the text field vs when my stuff is re-rendering a value to the codemirror instance.\n"},"comment":{"url":"https://api.github.com/repos/JedWatson/react-codemirror/issues/comments/305764105","html_url":"https://github.com/JedWatson/react-codemirror/issues/36#issuecomment-305764105","issue_url":"https://api.github.com/repos/JedWatson/react-codemirror/issues/36","id":305764105,"user":{"login":"scniro","id":13826518,"avatar_url":"https://avatars3.githubusercontent.com/u/13826518?v=3","gravatar_id":"","url":"https://api.github.com/users/scniro","html_url":"https://github.com/scniro","followers_url":"https://api.github.com/users/scniro/followers","following_url":"https://api.github.com/users/scniro/following{/other_user}","gists_url":"https://api.github.com/users/scniro/gists{/gist_id}","starred_url":"https://api.github.com/users/scniro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scniro/subscriptions","organizations_url":"https://api.github.com/users/scniro/orgs","repos_url":"https://api.github.com/users/scniro/repos","events_url":"https://api.github.com/users/scniro/events{/privacy}","received_events_url":"https://api.github.com/users/scniro/received_events","type":"User","site_admin":false},"created_at":"2017-06-02T11:45:51Z","updated_at":"2017-06-02T11:45:51Z","body":"If this issue still persists please give [react-codemirror2](https://github.com/scniro/react-codemirror2) a look. I'm planning on maintaining this moving forward. Better docs will be coming. Feel free to open up any issues/suggestions as I'll be trying to gather as much constructive feedback from the community moving forward"}}
{"actor":{"display_login":"scniro"}}