{"action":"created","issue":{"url":"https://api.github.com/repos/foxhound87/mobx-react-form/issues/232","repository_url":"https://api.github.com/repos/foxhound87/mobx-react-form","labels_url":"https://api.github.com/repos/foxhound87/mobx-react-form/issues/232/labels{/name}","comments_url":"https://api.github.com/repos/foxhound87/mobx-react-form/issues/232/comments","events_url":"https://api.github.com/repos/foxhound87/mobx-react-form/issues/232/events","html_url":"https://github.com/foxhound87/mobx-react-form/issues/232","id":214424989,"number":232,"title":"Storing objects in a field?","user":{"login":"nuschk","id":5167117,"avatar_url":"https://avatars2.githubusercontent.com/u/5167117?v=3","gravatar_id":"","url":"https://api.github.com/users/nuschk","html_url":"https://github.com/nuschk","followers_url":"https://api.github.com/users/nuschk/followers","following_url":"https://api.github.com/users/nuschk/following{/other_user}","gists_url":"https://api.github.com/users/nuschk/gists{/gist_id}","starred_url":"https://api.github.com/users/nuschk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuschk/subscriptions","organizations_url":"https://api.github.com/users/nuschk/orgs","repos_url":"https://api.github.com/users/nuschk/repos","events_url":"https://api.github.com/users/nuschk/events{/privacy}","received_events_url":"https://api.github.com/users/nuschk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2017-03-15T15:21:07Z","updated_at":"2017-03-28T12:04:25Z","closed_at":null,"body":"Not so much of an issue, more a question: I'd like to store lists and objects in a field, is that possible?\r\n\r\nFor example, we have image uploads which always come as `{ uid, caption, url }` object. We have single image uploads (e.g., a profile photo) or lists of uploads (e.g., photos on a blog post), which can be edited (i.e., adding, removing, changing the caption) in a form.\r\n\r\nIt doesn't work setting the array or object directly in the field. Updates to the field (using `field.set()`) do not trigger a change in the form model.\r\n\r\nShould I be using nested fields for this? If so, how would I specify a field containing a list with `{ uid, caption, url }` objects in it, using unified notification?\r\n\r\nWhat does work though is serializing the array or object to JSON and then putting this into the form. This is a bit inconvenient though.\r\n\r\nThanks!\r\n"},"comment":{"url":"https://api.github.com/repos/foxhound87/mobx-react-form/issues/comments/289748237","html_url":"https://github.com/foxhound87/mobx-react-form/issues/232#issuecomment-289748237","issue_url":"https://api.github.com/repos/foxhound87/mobx-react-form/issues/232","id":289748237,"user":{"login":"lazerscience","id":241109,"avatar_url":"https://avatars2.githubusercontent.com/u/241109?v=3","gravatar_id":"","url":"https://api.github.com/users/lazerscience","html_url":"https://github.com/lazerscience","followers_url":"https://api.github.com/users/lazerscience/followers","following_url":"https://api.github.com/users/lazerscience/following{/other_user}","gists_url":"https://api.github.com/users/lazerscience/gists{/gist_id}","starred_url":"https://api.github.com/users/lazerscience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lazerscience/subscriptions","organizations_url":"https://api.github.com/users/lazerscience/orgs","repos_url":"https://api.github.com/users/lazerscience/repos","events_url":"https://api.github.com/users/lazerscience/events{/privacy}","received_events_url":"https://api.github.com/users/lazerscience/received_events","type":"User","site_admin":false},"created_at":"2017-03-28T12:04:25Z","updated_at":"2017-03-28T12:04:25Z","body":"Oh sorry, that just happened when copying it over to GH... Well i'll try to get it working somehow, but thanks for your help anyways!"}}
{"actor":{"display_login":"lazerscience"}}