{"action":"opened","issue":{"url":"https://api.github.com/repos/final-form/final-form/issues/151","repository_url":"https://api.github.com/repos/final-form/final-form","labels_url":"https://api.github.com/repos/final-form/final-form/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/final-form/final-form/issues/151/comments","events_url":"https://api.github.com/repos/final-form/final-form/issues/151/events","html_url":"https://github.com/final-form/final-form/issues/151","id":348699376,"node_id":"MDU6SXNzdWUzNDg2OTkzNzY=","number":151,"title":"keepDirtyOnReinitialize and reset","user":{"login":"Dartv","id":10619987,"node_id":"MDQ6VXNlcjEwNjE5OTg3","avatar_url":"https://avatars2.githubusercontent.com/u/10619987?v=4","gravatar_id":"","url":"https://api.github.com/users/Dartv","html_url":"https://github.com/Dartv","followers_url":"https://api.github.com/users/Dartv/followers","following_url":"https://api.github.com/users/Dartv/following{/other_user}","gists_url":"https://api.github.com/users/Dartv/gists{/gist_id}","starred_url":"https://api.github.com/users/Dartv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dartv/subscriptions","organizations_url":"https://api.github.com/users/Dartv/orgs","repos_url":"https://api.github.com/users/Dartv/repos","events_url":"https://api.github.com/users/Dartv/events{/privacy}","received_events_url":"https://api.github.com/users/Dartv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-08T12:13:41Z","updated_at":"2018-08-08T12:13:41Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n\r\n👋 Hey, thanks for taking an interest in 🏁 Final Form!\r\n\r\n-->\r\n\r\n### Are you submitting a **bug report** or a **feature request**?\r\nfeature request\r\n<!-- For support request, please use Stack Overflow instead. This issue tracker is reserved for bugs and features. -->\r\n\r\n### What is the current behavior?\r\nWhen invoking `form.reset()` while `keepDirtyOnReinitialize` is true nothing happens.\r\n\r\n### What is the expected behavior?\r\n`form.reset()` resets the form\r\n### Sandbox Link\r\n\r\n<!-- Problems are much easier to understand and debug if they can be demonstrated in a minimal environment.  -->\r\n\r\n### What's your environment?\r\n\"final-form\": \"^4.9.1\"\r\n\"react-final-form\": \"^3.6.5\"\r\n<!-- Include 🏁 Final Form version, OS/browser affected, Node version, etc. -->\r\n\r\n### Other information\r\nI'm basically using AutoSave with `keepDirtyOnReinitialize` being true and I'm experiencing this issue when I want to reset form state when catching error from the server.\r\nGif to illustrate the problem: ![](https://i.gyazo.com/5daaf5133104853bf7af488cb652b54a.gif)\r\n\r\nMaybe add a second argument to reset to skip `keepDirtyOnReinitialize` or even a new prop?\r\n<!-- Include here any detailed explanation, stacktraces, related issues, links for Stack Overflow, Twitter, etc. -->\r\n"}}
{"actor":{"display_login":"Dartv"}}