{"action":"created","issue":{"url":"https://api.github.com/repos/davidkpiano/react-redux-form/issues/586","repository_url":"https://api.github.com/repos/davidkpiano/react-redux-form","labels_url":"https://api.github.com/repos/davidkpiano/react-redux-form/issues/586/labels{/name}","comments_url":"https://api.github.com/repos/davidkpiano/react-redux-form/issues/586/comments","events_url":"https://api.github.com/repos/davidkpiano/react-redux-form/issues/586/events","html_url":"https://github.com/davidkpiano/react-redux-form/issues/586","id":197037588,"number":586,"title":"Auto-saving forms","user":{"login":"oyeanuj","id":9633371,"avatar_url":"https://avatars.githubusercontent.com/u/9633371?v=3","gravatar_id":"","url":"https://api.github.com/users/oyeanuj","html_url":"https://github.com/oyeanuj","followers_url":"https://api.github.com/users/oyeanuj/followers","following_url":"https://api.github.com/users/oyeanuj/following{/other_user}","gists_url":"https://api.github.com/users/oyeanuj/gists{/gist_id}","starred_url":"https://api.github.com/users/oyeanuj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oyeanuj/subscriptions","organizations_url":"https://api.github.com/users/oyeanuj/orgs","repos_url":"https://api.github.com/users/oyeanuj/repos","events_url":"https://api.github.com/users/oyeanuj/events{/privacy}","received_events_url":"https://api.github.com/users/oyeanuj/received_events","type":"User","site_admin":false},"labels":[{"id":298251638,"url":"https://api.github.com/repos/davidkpiano/react-redux-form/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-21T21:30:57Z","updated_at":"2016-12-21T21:46:03Z","closed_at":null,"body":"Hi @davidkpiano! As per our conversation on Discord, here is the feature request to be able to support auto-saving forms.\r\n\r\n**Usecase:**\r\nCreating an auto-saving form, where values are saved as the user enters them. This, in most cases, will imply that the changes are saved (and/or validated server-side)`onChange`, though probably debounced. In some cases, `onBlur` can work but it is not always the optimum user-experience (for example, choosing a username)\r\n\r\nUsers might choose to submit in one of two manners - submit the entire form, or submit just that field. This is likely to happen when it is a heavier or a longer form.\r\n\r\nFWIW, I hacked together a solution using Redux-Form and [React-Debounce-Input](https://github.com/nkbt/react-debounce-input) that can be found here - https://gist.github.com/oyeanuj/2f69ebe1004e2ff47d7550d957bf05cf with the basic overview in the file [TheAutoSavingForm.md](https://gist.github.com/oyeanuj/2f69ebe1004e2ff47d7550d957bf05cf#file-theautosavingform-md) in that gist.\r\n\r\nThank you!"},"comment":{"url":"https://api.github.com/repos/davidkpiano/react-redux-form/issues/comments/268649090","html_url":"https://github.com/davidkpiano/react-redux-form/issues/586#issuecomment-268649090","issue_url":"https://api.github.com/repos/davidkpiano/react-redux-form/issues/586","id":268649090,"user":{"login":"davidkpiano","id":1093738,"avatar_url":"https://avatars.githubusercontent.com/u/1093738?v=3","gravatar_id":"","url":"https://api.github.com/users/davidkpiano","html_url":"https://github.com/davidkpiano","followers_url":"https://api.github.com/users/davidkpiano/followers","following_url":"https://api.github.com/users/davidkpiano/following{/other_user}","gists_url":"https://api.github.com/users/davidkpiano/gists{/gist_id}","starred_url":"https://api.github.com/users/davidkpiano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidkpiano/subscriptions","organizations_url":"https://api.github.com/users/davidkpiano/orgs","repos_url":"https://api.github.com/users/davidkpiano/repos","events_url":"https://api.github.com/users/davidkpiano/events{/privacy}","received_events_url":"https://api.github.com/users/davidkpiano/received_events","type":"User","site_admin":false},"created_at":"2016-12-21T21:46:03Z","updated_at":"2016-12-21T21:46:03Z","body":"Yeah, it would be almost trivial to have something like this API:\r\n\r\n```jsx\r\n<Form model=\"user\" submitOn=\"change\">\r\n  ...\r\n</Form>\r\n```\r\n\r\n(or `'blur'` or `'submit'` (default)), but of course it would submit the entire form.\r\n\r\nThe tricky part is the whole only-submit-changed-field(s) part. I think there was a previous issue: #409 that discussed this."}}
{"actor":{"display_login":"davidkpiano"}}