{"action":"created","issue":{"url":"https://api.github.com/repos/react-tools/react-form/issues/133","repository_url":"https://api.github.com/repos/react-tools/react-form","labels_url":"https://api.github.com/repos/react-tools/react-form/issues/133/labels{/name}","comments_url":"https://api.github.com/repos/react-tools/react-form/issues/133/comments","events_url":"https://api.github.com/repos/react-tools/react-form/issues/133/events","html_url":"https://github.com/react-tools/react-form/issues/133","id":269193186,"number":133,"title":"Converting circular structure to JSON","user":{"login":"arolson101","id":5304092,"avatar_url":"https://avatars0.githubusercontent.com/u/5304092?v=4","gravatar_id":"","url":"https://api.github.com/users/arolson101","html_url":"https://github.com/arolson101","followers_url":"https://api.github.com/users/arolson101/followers","following_url":"https://api.github.com/users/arolson101/following{/other_user}","gists_url":"https://api.github.com/users/arolson101/gists{/gist_id}","starred_url":"https://api.github.com/users/arolson101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arolson101/subscriptions","organizations_url":"https://api.github.com/users/arolson101/orgs","repos_url":"https://api.github.com/users/arolson101/repos","events_url":"https://api.github.com/users/arolson101/events{/privacy}","received_events_url":"https://api.github.com/users/arolson101/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2017-10-27T18:18:58Z","updated_at":"2017-10-31T01:53:34Z","closed_at":null,"author_association":"NONE","body":"I am passing a react element as a prop to a custom component like this:\r\n```js\r\n<TextField addonBefore={<div>addon</div>}/>\r\n```\r\n\r\nthis results in:\r\n```\r\nUncaught TypeError: Converting circular structure to JSON\r\n    at JSON.stringify (<anonymous>)\r\n    at t.value (preview.bundle.js:formatted:382618)\r\n    at checkShouldComponentUpdate (preview.bundle.js:formatted:135775)\r\n    at updateClassInstance (preview.bundle.js:formatted:136091)\r\n    at updateClassComponent (preview.bundle.js:formatted:136311)\r\n    at beginWork (preview.bundle.js:formatted:136691)\r\n    at performUnitOfWork (preview.bundle.js:formatted:138635)\r\n    at workLoop (preview.bundle.js:formatted:138744)\r\n    at HTMLUnknownElement.callCallback (preview.bundle.js:formatted:127420)\r\n    at Object.invokeGuardedCallbackDev (preview.bundle.js:formatted:127459)\r\n```\r\n\r\nin ```checkShouldComponentUpdate ``` it's testing ```JSON.stringify(a) !== JSON.stringify(u)```.  I'm not quite sure why the structure is circular but it would be nice if this was supported in version 2 (it worked in version 1)"},"comment":{"url":"https://api.github.com/repos/react-tools/react-form/issues/comments/340636237","html_url":"https://github.com/react-tools/react-form/issues/133#issuecomment-340636237","issue_url":"https://api.github.com/repos/react-tools/react-form/issues/133","id":340636237,"user":{"login":"tannerlinsley","id":5580297,"avatar_url":"https://avatars0.githubusercontent.com/u/5580297?v=4","gravatar_id":"","url":"https://api.github.com/users/tannerlinsley","html_url":"https://github.com/tannerlinsley","followers_url":"https://api.github.com/users/tannerlinsley/followers","following_url":"https://api.github.com/users/tannerlinsley/following{/other_user}","gists_url":"https://api.github.com/users/tannerlinsley/gists{/gist_id}","starred_url":"https://api.github.com/users/tannerlinsley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tannerlinsley/subscriptions","organizations_url":"https://api.github.com/users/tannerlinsley/orgs","repos_url":"https://api.github.com/users/tannerlinsley/repos","events_url":"https://api.github.com/users/tannerlinsley/events{/privacy}","received_events_url":"https://api.github.com/users/tannerlinsley/received_events","type":"User","site_admin":false},"created_at":"2017-10-31T01:53:34Z","updated_at":"2017-10-31T01:53:34Z","author_association":"COLLABORATOR","body":"See #134"}}
{"actor":{"display_login":"tannerlinsley"}}