{"action":"created","issue":{"url":"https://api.github.com/repos/erikras/redux-form/issues/1270","repository_url":"https://api.github.com/repos/erikras/redux-form","labels_url":"https://api.github.com/repos/erikras/redux-form/issues/1270/labels{/name}","comments_url":"https://api.github.com/repos/erikras/redux-form/issues/1270/comments","events_url":"https://api.github.com/repos/erikras/redux-form/issues/1270/events","html_url":"https://github.com/erikras/redux-form/issues/1270","id":163568160,"number":1270,"title":"Form is refreshing after submit","user":{"login":"wedranb","id":1723170,"avatar_url":"https://avatars.githubusercontent.com/u/1723170?v=3","gravatar_id":"","url":"https://api.github.com/users/wedranb","html_url":"https://github.com/wedranb","followers_url":"https://api.github.com/users/wedranb/followers","following_url":"https://api.github.com/users/wedranb/following{/other_user}","gists_url":"https://api.github.com/users/wedranb/gists{/gist_id}","starred_url":"https://api.github.com/users/wedranb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wedranb/subscriptions","organizations_url":"https://api.github.com/users/wedranb/orgs","repos_url":"https://api.github.com/users/wedranb/repos","events_url":"https://api.github.com/users/wedranb/events{/privacy}","received_events_url":"https://api.github.com/users/wedranb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":21,"created_at":"2016-07-03T16:00:15Z","updated_at":"2016-10-25T20:07:55Z","closed_at":"2016-07-06T19:33:48Z","body":"Hi, I have a simple stateless form component and after I click Login button my page is refreshed.\r\n\r\nHow can I prevent my page from refreshing?\r\n\r\nI use **redux form 6 rc1**\r\n```\r\nimport React, { Component } from 'react';\r\nimport { Field, reduxForm } from 'redux-form';\r\n\r\nconst validate = values => {\r\n  const errors = {};\r\n\r\n  if (!values.email) {\r\n     errors.email = 'Required'\r\n   } else if (!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,4}$/i.test(values.email)) {\r\n     errors.email = 'Invalid email address'\r\n   }\r\n\r\n   return errors;\r\n}\r\n\r\nconst LoginForm = (props) => {\r\n  const { handleSubmit } = props;\r\n  return(\r\n    <form onSubmit={handleSubmit}>\r\n      <div>\r\n        <label>E-mail</label>\r\n        <Field name=\"email\" component=\"input\" type=\"text\" />\r\n        <button type=\"submit\" className=\"button button--green\">Login</button>\r\n      </div>\r\n    </form>\r\n  );\r\n}\r\n\r\nexport default reduxForm({\r\n  form: 'login',\r\n  validate\r\n})(LoginForm);\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/erikras/redux-form/issues/comments/256160595","html_url":"https://github.com/erikras/redux-form/issues/1270#issuecomment-256160595","issue_url":"https://api.github.com/repos/erikras/redux-form/issues/1270","id":256160595,"user":{"login":"NeXTs","id":1753208,"avatar_url":"https://avatars.githubusercontent.com/u/1753208?v=3","gravatar_id":"","url":"https://api.github.com/users/NeXTs","html_url":"https://github.com/NeXTs","followers_url":"https://api.github.com/users/NeXTs/followers","following_url":"https://api.github.com/users/NeXTs/following{/other_user}","gists_url":"https://api.github.com/users/NeXTs/gists{/gist_id}","starred_url":"https://api.github.com/users/NeXTs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NeXTs/subscriptions","organizations_url":"https://api.github.com/users/NeXTs/orgs","repos_url":"https://api.github.com/users/NeXTs/repos","events_url":"https://api.github.com/users/NeXTs/events{/privacy}","received_events_url":"https://api.github.com/users/NeXTs/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T20:07:55Z","updated_at":"2016-10-25T20:07:55Z","body":"@AndreasHoermandinger pay attention to https://github.com/erikras/redux-form/issues/1270#issuecomment-239636759"}}
{"actor":{"display_login":"NeXTs"}}