{"action":"created","issue":{"url":"https://api.github.com/repos/rackt/redux/issues/699","labels_url":"https://api.github.com/repos/rackt/redux/issues/699/labels{/name}","comments_url":"https://api.github.com/repos/rackt/redux/issues/699/comments","events_url":"https://api.github.com/repos/rackt/redux/issues/699/events","html_url":"https://github.com/rackt/redux/issues/699","id":105742111,"number":699,"title":"What's the correct way to update <input/> default value?","user":{"login":"DogLooksGood","id":11796018,"avatar_url":"https://avatars.githubusercontent.com/u/11796018?v=3","gravatar_id":"","url":"https://api.github.com/users/DogLooksGood","html_url":"https://github.com/DogLooksGood","followers_url":"https://api.github.com/users/DogLooksGood/followers","following_url":"https://api.github.com/users/DogLooksGood/following{/other_user}","gists_url":"https://api.github.com/users/DogLooksGood/gists{/gist_id}","starred_url":"https://api.github.com/users/DogLooksGood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DogLooksGood/subscriptions","organizations_url":"https://api.github.com/users/DogLooksGood/orgs","repos_url":"https://api.github.com/users/DogLooksGood/repos","events_url":"https://api.github.com/users/DogLooksGood/events{/privacy}","received_events_url":"https://api.github.com/users/DogLooksGood/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-10T06:46:23Z","updated_at":"2015-09-10T16:47:48Z","closed_at":null,"body":"I have a input tag:\r\n`<input type='text' />`\r\nwhen component did mount, I send ajax request and get a value.\r\nThen I want to set this value as the input's `defaultValue` property.\r\nWithout redux, I might use local state, set this value to input's 'value' property and add an onChange function.\r\nWhat's the correct way to do this in redux?"},"comment":{"url":"https://api.github.com/repos/rackt/redux/issues/comments/139307076","html_url":"https://github.com/rackt/redux/issues/699#issuecomment-139307076","issue_url":"https://api.github.com/repos/rackt/redux/issues/699","id":139307076,"user":{"login":"morinted","id":5840970,"avatar_url":"https://avatars.githubusercontent.com/u/5840970?v=3","gravatar_id":"","url":"https://api.github.com/users/morinted","html_url":"https://github.com/morinted","followers_url":"https://api.github.com/users/morinted/followers","following_url":"https://api.github.com/users/morinted/following{/other_user}","gists_url":"https://api.github.com/users/morinted/gists{/gist_id}","starred_url":"https://api.github.com/users/morinted/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morinted/subscriptions","organizations_url":"https://api.github.com/users/morinted/orgs","repos_url":"https://api.github.com/users/morinted/repos","events_url":"https://api.github.com/users/morinted/events{/privacy}","received_events_url":"https://api.github.com/users/morinted/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T16:47:48Z","updated_at":"2015-09-10T16:47:48Z","body":"Your input will have local state, but you can connect it to redux on entry (component did mount, in your case) and on submit (or on change if you must act on the data immediately)."}}