{"action":"created","issue":{"url":"https://api.github.com/repos/erikras/redux-form/issues/1341","repository_url":"https://api.github.com/repos/erikras/redux-form","labels_url":"https://api.github.com/repos/erikras/redux-form/issues/1341/labels{/name}","comments_url":"https://api.github.com/repos/erikras/redux-form/issues/1341/comments","events_url":"https://api.github.com/repos/erikras/redux-form/issues/1341/events","html_url":"https://github.com/erikras/redux-form/issues/1341","id":165402290,"number":1341,"title":"[V6] Field defaultValue not initialized in Store, nor passed to onSubmit","user":{"login":"ebwill","id":9576021,"avatar_url":"https://avatars.githubusercontent.com/u/9576021?v=3","gravatar_id":"","url":"https://api.github.com/users/ebwill","html_url":"https://github.com/ebwill","followers_url":"https://api.github.com/users/ebwill/followers","following_url":"https://api.github.com/users/ebwill/following{/other_user}","gists_url":"https://api.github.com/users/ebwill/gists{/gist_id}","starred_url":"https://api.github.com/users/ebwill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebwill/subscriptions","organizations_url":"https://api.github.com/users/ebwill/orgs","repos_url":"https://api.github.com/users/ebwill/repos","events_url":"https://api.github.com/users/ebwill/events{/privacy}","received_events_url":"https://api.github.com/users/ebwill/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-13T19:30:15Z","updated_at":"2016-08-04T22:23:41Z","closed_at":null,"body":"I would think that at the very least field defaults should be passed to the `onSubmit` handler to reflect the actual values of the fields. If not, it places an unnecessary burden on the `onSubmit` handler to be aware of the default values, in the case that they are needed (not every API allows sparse updates)."},"comment":{"url":"https://api.github.com/repos/erikras/redux-form/issues/comments/237701660","html_url":"https://github.com/erikras/redux-form/issues/1341#issuecomment-237701660","issue_url":"https://api.github.com/repos/erikras/redux-form/issues/1341","id":237701660,"user":{"login":"olslash","id":693493,"avatar_url":"https://avatars.githubusercontent.com/u/693493?v=3","gravatar_id":"","url":"https://api.github.com/users/olslash","html_url":"https://github.com/olslash","followers_url":"https://api.github.com/users/olslash/followers","following_url":"https://api.github.com/users/olslash/following{/other_user}","gists_url":"https://api.github.com/users/olslash/gists{/gist_id}","starred_url":"https://api.github.com/users/olslash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olslash/subscriptions","organizations_url":"https://api.github.com/users/olslash/orgs","repos_url":"https://api.github.com/users/olslash/repos","events_url":"https://api.github.com/users/olslash/events{/privacy}","received_events_url":"https://api.github.com/users/olslash/received_events","type":"User","site_admin":false},"created_at":"2016-08-04T22:23:41Z","updated_at":"2016-08-04T22:23:41Z","body":"+1 @erikras I'm trying to figure out a good way around this issue -- right now the only thing defaultValue does is overwrite `props.input.value` in the case that no value is given (defaulting to empty string)\r\n\r\nI'd like to see default values be more integrated into the data flow. They should be in the store just like if they were set by onChange, that way we don't have to explicitly check and re-populate the store state with them in a submit handler."}}
{"actor":{"display_login":"olslash"}}