{"action":"closed","issue":{"url":"https://api.github.com/repos/erikras/redux-form/issues/986","repository_url":"https://api.github.com/repos/erikras/redux-form","labels_url":"https://api.github.com/repos/erikras/redux-form/issues/986/labels{/name}","comments_url":"https://api.github.com/repos/erikras/redux-form/issues/986/comments","events_url":"https://api.github.com/repos/erikras/redux-form/issues/986/events","html_url":"https://github.com/erikras/redux-form/issues/986","id":155153899,"number":986,"title":"13 alpha, second invocation of handleSubmit doesn't return function","user":{"login":"AVVS","id":1713617,"avatar_url":"https://avatars.githubusercontent.com/u/1713617?v=3","gravatar_id":"","url":"https://api.github.com/users/AVVS","html_url":"https://github.com/AVVS","followers_url":"https://api.github.com/users/AVVS/followers","following_url":"https://api.github.com/users/AVVS/following{/other_user}","gists_url":"https://api.github.com/users/AVVS/gists{/gist_id}","starred_url":"https://api.github.com/users/AVVS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AVVS/subscriptions","organizations_url":"https://api.github.com/users/AVVS/orgs","repos_url":"https://api.github.com/users/AVVS/repos","events_url":"https://api.github.com/users/AVVS/events{/privacy}","received_events_url":"https://api.github.com/users/AVVS/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/erikras/redux-form/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/erikras/redux-form/milestones/1","html_url":"https://github.com/erikras/redux-form/milestones/next-6.0.0","labels_url":"https://api.github.com/repos/erikras/redux-form/milestones/1/labels","id":1736711,"number":1,"title":"next-6.0.0","description":"","creator":{"login":"ooflorent","id":168498,"avatar_url":"https://avatars.githubusercontent.com/u/168498?v=3","gravatar_id":"","url":"https://api.github.com/users/ooflorent","html_url":"https://github.com/ooflorent","followers_url":"https://api.github.com/users/ooflorent/followers","following_url":"https://api.github.com/users/ooflorent/following{/other_user}","gists_url":"https://api.github.com/users/ooflorent/gists{/gist_id}","starred_url":"https://api.github.com/users/ooflorent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ooflorent/subscriptions","organizations_url":"https://api.github.com/users/ooflorent/orgs","repos_url":"https://api.github.com/users/ooflorent/repos","events_url":"https://api.github.com/users/ooflorent/events{/privacy}","received_events_url":"https://api.github.com/users/ooflorent/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":55,"state":"open","created_at":"2016-04-28T15:08:08Z","updated_at":"2016-05-24T18:09:53Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2016-05-17T00:47:47Z","updated_at":"2016-05-24T18:09:53Z","closed_at":"2016-05-24T18:09:53Z","body":"After initial form submit, handleSubmit(fn) doesn't return new function on rerender\r\nConsider following snippet of code:\r\n\r\n```js\r\nhandleRestore = (user) => {\r\n    const { props } = this;\r\n    return props\r\n      .handleRestore(user.id, props.http)\r\n      .then(data => {\r\n        if (!data.error) {\r\n          return this.handleSuccess(data.payload);\r\n        }\r\n\r\n        return props.showToast(get(data, 'payload.data.errors[0].title', data.payload));\r\n      });\r\n  }\r\n\r\n  handleSuccess = (data) => {\r\n    this.props.showToast('password was sent to your email');\r\n    this.props.pushState('/');\r\n    return data;\r\n  }\r\n\r\n  render() {\r\n    const { handleSubmit, ...rest } = this.props;\r\n\r\n    return (\r\n      <PaperForm\r\n        {...rest}\r\n        title=\"Restore Password\"\r\n        handleSubmit={handleSubmit(this.handleRestore)}\r\n        submitLabel=\"Request Password\"\r\n        secondaryLabel=\"sign in\"\r\n        to=\"/\"\r\n      >\r\n        <Field name=\"id\" component={RestorePassword.emailField} />\r\n      </PaperForm>\r\n    );\r\n  }\r\n```"}}
{"actor":{"display_login":"erikras"}}