{"action":"created","issue":{"url":"https://api.github.com/repos/kettanaito/react-advanced-form/issues/262","repository_url":"https://api.github.com/repos/kettanaito/react-advanced-form","labels_url":"https://api.github.com/repos/kettanaito/react-advanced-form/issues/262/labels{/name}","comments_url":"https://api.github.com/repos/kettanaito/react-advanced-form/issues/262/comments","events_url":"https://api.github.com/repos/kettanaito/react-advanced-form/issues/262/events","html_url":"https://github.com/kettanaito/react-advanced-form/issues/262","id":344742017,"node_id":"MDU6SXNzdWUzNDQ3NDIwMTc=","number":262,"title":"Feature: Support initial values for form","user":{"login":"Filson14","id":4540538,"node_id":"MDQ6VXNlcjQ1NDA1Mzg=","avatar_url":"https://avatars1.githubusercontent.com/u/4540538?v=4","gravatar_id":"","url":"https://api.github.com/users/Filson14","html_url":"https://github.com/Filson14","followers_url":"https://api.github.com/users/Filson14/followers","following_url":"https://api.github.com/users/Filson14/following{/other_user}","gists_url":"https://api.github.com/users/Filson14/gists{/gist_id}","starred_url":"https://api.github.com/users/Filson14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Filson14/subscriptions","organizations_url":"https://api.github.com/users/Filson14/orgs","repos_url":"https://api.github.com/users/Filson14/repos","events_url":"https://api.github.com/users/Filson14/events{/privacy}","received_events_url":"https://api.github.com/users/Filson14/received_events","type":"User","site_admin":false},"labels":[{"id":776620675,"node_id":"MDU6TGFiZWw3NzY2MjA2NzU=","url":"https://api.github.com/repos/kettanaito/react-advanced-form/labels/feature","name":"feature","color":"79fce8","default":false},{"id":873278910,"node_id":"MDU6TGFiZWw4NzMyNzg5MTA=","url":"https://api.github.com/repos/kettanaito/react-advanced-form/labels/good%20first%20issue","name":"good first issue","color":"7057ff","default":true}],"state":"closed","locked":false,"assignee":{"login":"kettanaito","id":14984911,"node_id":"MDQ6VXNlcjE0OTg0OTEx","avatar_url":"https://avatars3.githubusercontent.com/u/14984911?v=4","gravatar_id":"","url":"https://api.github.com/users/kettanaito","html_url":"https://github.com/kettanaito","followers_url":"https://api.github.com/users/kettanaito/followers","following_url":"https://api.github.com/users/kettanaito/following{/other_user}","gists_url":"https://api.github.com/users/kettanaito/gists{/gist_id}","starred_url":"https://api.github.com/users/kettanaito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kettanaito/subscriptions","organizations_url":"https://api.github.com/users/kettanaito/orgs","repos_url":"https://api.github.com/users/kettanaito/repos","events_url":"https://api.github.com/users/kettanaito/events{/privacy}","received_events_url":"https://api.github.com/users/kettanaito/received_events","type":"User","site_admin":false},"assignees":[{"login":"kettanaito","id":14984911,"node_id":"MDQ6VXNlcjE0OTg0OTEx","avatar_url":"https://avatars3.githubusercontent.com/u/14984911?v=4","gravatar_id":"","url":"https://api.github.com/users/kettanaito","html_url":"https://github.com/kettanaito","followers_url":"https://api.github.com/users/kettanaito/followers","following_url":"https://api.github.com/users/kettanaito/following{/other_user}","gists_url":"https://api.github.com/users/kettanaito/gists{/gist_id}","starred_url":"https://api.github.com/users/kettanaito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kettanaito/subscriptions","organizations_url":"https://api.github.com/users/kettanaito/orgs","repos_url":"https://api.github.com/users/kettanaito/repos","events_url":"https://api.github.com/users/kettanaito/events{/privacy}","received_events_url":"https://api.github.com/users/kettanaito/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/kettanaito/react-advanced-form/milestones/3","html_url":"https://github.com/kettanaito/react-advanced-form/milestone/3","labels_url":"https://api.github.com/repos/kettanaito/react-advanced-form/milestones/3/labels","id":3211605,"node_id":"MDk6TWlsZXN0b25lMzIxMTYwNQ==","number":3,"title":"1.x","description":"Things to be published under `1.x` versions.","creator":{"login":"kettanaito","id":14984911,"node_id":"MDQ6VXNlcjE0OTg0OTEx","avatar_url":"https://avatars3.githubusercontent.com/u/14984911?v=4","gravatar_id":"","url":"https://api.github.com/users/kettanaito","html_url":"https://github.com/kettanaito","followers_url":"https://api.github.com/users/kettanaito/followers","following_url":"https://api.github.com/users/kettanaito/following{/other_user}","gists_url":"https://api.github.com/users/kettanaito/gists{/gist_id}","starred_url":"https://api.github.com/users/kettanaito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kettanaito/subscriptions","organizations_url":"https://api.github.com/users/kettanaito/orgs","repos_url":"https://api.github.com/users/kettanaito/repos","events_url":"https://api.github.com/users/kettanaito/events{/privacy}","received_events_url":"https://api.github.com/users/kettanaito/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":24,"state":"open","created_at":"2018-03-23T08:52:48Z","updated_at":"2018-09-27T12:50:44Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2018-07-26T08:20:34Z","updated_at":"2018-09-29T17:55:01Z","closed_at":"2018-09-12T07:12:12Z","author_association":"NONE","body":"## Environment\r\n* **OS:** Ubuntu 16.04\r\n* **Node:** 10.4.1\r\n* **NPM:** 6.1.0\r\n* **react-advanaced-form:** 1.3.2\r\n\r\n## What\r\nRAF should provide feature to enable setting initial data for whole form (not just for field).\r\n\r\n## Why\r\nIt is a common use case to use forms for data instance management / editing already existing data.\r\n\r\n## How\r\nHow to reproduce the issue? / How do you see the implementation of the feature?\r\nI would like to propose a new prop \"initialData\" (to be consistent with field initialData), where developer can provide object for the form with matching values. After some changes to form, the reset function should bring the initial data back.\r\n\r\n## Keynotes\r\nIt's a common scenario to get some data from server and then fulfill a form with it to let user put some changes."},"comment":{"url":"https://api.github.com/repos/kettanaito/react-advanced-form/issues/comments/425663769","html_url":"https://github.com/kettanaito/react-advanced-form/issues/262#issuecomment-425663769","issue_url":"https://api.github.com/repos/kettanaito/react-advanced-form/issues/262","id":425663769,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTY2Mzc2OQ==","user":{"login":"h0wXD","id":10574115,"node_id":"MDQ6VXNlcjEwNTc0MTE1","avatar_url":"https://avatars1.githubusercontent.com/u/10574115?v=4","gravatar_id":"","url":"https://api.github.com/users/h0wXD","html_url":"https://github.com/h0wXD","followers_url":"https://api.github.com/users/h0wXD/followers","following_url":"https://api.github.com/users/h0wXD/following{/other_user}","gists_url":"https://api.github.com/users/h0wXD/gists{/gist_id}","starred_url":"https://api.github.com/users/h0wXD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h0wXD/subscriptions","organizations_url":"https://api.github.com/users/h0wXD/orgs","repos_url":"https://api.github.com/users/h0wXD/repos","events_url":"https://api.github.com/users/h0wXD/events{/privacy}","received_events_url":"https://api.github.com/users/h0wXD/received_events","type":"User","site_admin":false},"created_at":"2018-09-29T17:55:01Z","updated_at":"2018-09-29T17:55:01Z","author_association":"NONE","body":"Hi, I have been using the initial values and it works great. Is there any way to re-initialize the form with newer initial values? e.g. I navigated to the form page, having a loading screen with ongoing fetch. Form gets rendered with outdated values (passed down from store). Store gets updated, component re-rendered, new initialValues come down, but nothing happens. I also tried triggering form reset after new initialValues come down. Seems they are really initial. I could change my approach to only navigate to the form after loading the data to get around this. Did I miss something? Thanks for the great library! Loving it so far!"}}
{"actor":{"display_login":"h0wXD"}}