{"action":"created","issue":{"url":"https://api.github.com/repos/erikras/redux-form/issues/3872","repository_url":"https://api.github.com/repos/erikras/redux-form","labels_url":"https://api.github.com/repos/erikras/redux-form/issues/3872/labels{/name}","comments_url":"https://api.github.com/repos/erikras/redux-form/issues/3872/comments","events_url":"https://api.github.com/repos/erikras/redux-form/issues/3872/events","html_url":"https://github.com/erikras/redux-form/issues/3872","id":300226278,"number":3872,"title":"FormSection Fields do not show error for async validation","user":{"login":"odrzutowiec","id":2934746,"avatar_url":"https://avatars3.githubusercontent.com/u/2934746?v=4","gravatar_id":"","url":"https://api.github.com/users/odrzutowiec","html_url":"https://github.com/odrzutowiec","followers_url":"https://api.github.com/users/odrzutowiec/followers","following_url":"https://api.github.com/users/odrzutowiec/following{/other_user}","gists_url":"https://api.github.com/users/odrzutowiec/gists{/gist_id}","starred_url":"https://api.github.com/users/odrzutowiec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odrzutowiec/subscriptions","organizations_url":"https://api.github.com/users/odrzutowiec/orgs","repos_url":"https://api.github.com/users/odrzutowiec/repos","events_url":"https://api.github.com/users/odrzutowiec/events{/privacy}","received_events_url":"https://api.github.com/users/odrzutowiec/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-26T12:52:32Z","updated_at":"2018-03-16T06:50:29Z","closed_at":null,"author_association":"NONE","body":"### Are you submitting a **bug report** or a **feature request**?\r\n<!-- For support request, please use Stack Overflow instead. This issue tracker is reserved for bugs and features. -->\r\nbug\r\n\r\n### What is the current behavior?\r\n<!-- If this is a bug, please include steps to reproduce and a minimal demo of the problem using Plunkr, WebpackBin or JSFiddle. -->\r\nAsyncValidation validates FormSection fields but does not pass the information about the error so Fields inside FormSection always render successful even if they aren't\r\n\r\n### What is the expected behavior?\r\nWhen AsynValidation is performed and failed (rejected) Fields from FormSections should also show error state.\r\n\r\n### Sandbox Link\r\n<!-- Problems are much easier to understand and debug if they can be demonstrated in a minimal environment. Pick the example sandbox (linked on the README) that is most like your app, and see if you can reproduce the problem.  -->\r\nhttps://gist.github.com/odrzutowiec/2703aa4dff6fd71d1ef4a43213bc796a\r\n\r\n### What's your environment?\r\n<!-- Include Redux Form version, OS/browser affected, Node version, etc. -->\r\n\"redux-form\": \"^7.2.0\"\r\n\r\n### Other information\r\n<!-- Include here any detailed explanation, stacktraces, related issues, links for Stack Overflow, Twitter, etc. -->\r\nCouldn't find anything on the internet about this usecase\r\n"},"comment":{"url":"https://api.github.com/repos/erikras/redux-form/issues/comments/373619229","html_url":"https://github.com/erikras/redux-form/issues/3872#issuecomment-373619229","issue_url":"https://api.github.com/repos/erikras/redux-form/issues/3872","id":373619229,"user":{"login":"sixertoy","id":7091470,"avatar_url":"https://avatars2.githubusercontent.com/u/7091470?v=4","gravatar_id":"","url":"https://api.github.com/users/sixertoy","html_url":"https://github.com/sixertoy","followers_url":"https://api.github.com/users/sixertoy/followers","following_url":"https://api.github.com/users/sixertoy/following{/other_user}","gists_url":"https://api.github.com/users/sixertoy/gists{/gist_id}","starred_url":"https://api.github.com/users/sixertoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sixertoy/subscriptions","organizations_url":"https://api.github.com/users/sixertoy/orgs","repos_url":"https://api.github.com/users/sixertoy/repos","events_url":"https://api.github.com/users/sixertoy/events{/privacy}","received_events_url":"https://api.github.com/users/sixertoy/received_events","type":"User","site_admin":false},"created_at":"2018-03-16T06:50:29Z","updated_at":"2018-03-16T06:50:29Z","author_association":"NONE","body":"Hey!\r\nA quick workaround\r\n\r\n```javascript\r\nconst validate = (values) => {\r\n  // validate as in example/usual\r\n  return errors\r\n}\r\n\r\nconst MyComponent = () => {\r\n  render () {\r\n    return (\r\n      <Form onSubmit={handleSubmit}>\r\n        <FormSection component=\"div\"\r\n          name=\"signup\">\r\n        ...\r\n        </FormSection>\r\n      </Form>\r\n    );\r\n  }\r\n}\r\n\r\nexport default reduxForm({\r\n  form: 'signup',\r\n  // here's is the \"hack\"\r\n  validate: values => ({\r\n    signup: validate(values.signup || {}),\r\n  }),\r\n})(SignupForm);\r\n```\r\n\r\nNot yet tested with reducers and more..."}}
{"actor":{"display_login":"sixertoy"}}