{"action":"created","issue":{"url":"https://api.github.com/repos/erikras/redux-form/issues/118","labels_url":"https://api.github.com/repos/erikras/redux-form/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/erikras/redux-form/issues/118/comments","events_url":"https://api.github.com/repos/erikras/redux-form/issues/118/events","html_url":"https://github.com/erikras/redux-form/issues/118","id":110369020,"number":118,"title":"Access whole store when doing validation","user":{"login":"johnz","id":120989,"avatar_url":"https://avatars.githubusercontent.com/u/120989?v=3","gravatar_id":"","url":"https://api.github.com/users/johnz","html_url":"https://github.com/johnz","followers_url":"https://api.github.com/users/johnz/followers","following_url":"https://api.github.com/users/johnz/following{/other_user}","gists_url":"https://api.github.com/users/johnz/gists{/gist_id}","starred_url":"https://api.github.com/users/johnz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnz/subscriptions","organizations_url":"https://api.github.com/users/johnz/orgs","repos_url":"https://api.github.com/users/johnz/repos","events_url":"https://api.github.com/users/johnz/events{/privacy}","received_events_url":"https://api.github.com/users/johnz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-10-08T03:59:32Z","updated_at":"2015-11-09T02:25:19Z","closed_at":"2015-11-06T21:40:31Z","body":"It'd be nice if could access full store when doing validation,  a common use case would be \r\n- loaded a list of todo items from store and render it\r\n- add a new todo item which already exist \r\n- when doing validation if could access store to get a list of todos then could stop adding duplicate todo item \r\n"},"comment":{"url":"https://api.github.com/repos/erikras/redux-form/issues/comments/154904049","html_url":"https://github.com/erikras/redux-form/issues/118#issuecomment-154904049","issue_url":"https://api.github.com/repos/erikras/redux-form/issues/118","id":154904049,"user":{"login":"kristian-puccio","id":2113407,"avatar_url":"https://avatars.githubusercontent.com/u/2113407?v=3","gravatar_id":"","url":"https://api.github.com/users/kristian-puccio","html_url":"https://github.com/kristian-puccio","followers_url":"https://api.github.com/users/kristian-puccio/followers","following_url":"https://api.github.com/users/kristian-puccio/following{/other_user}","gists_url":"https://api.github.com/users/kristian-puccio/gists{/gist_id}","starred_url":"https://api.github.com/users/kristian-puccio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kristian-puccio/subscriptions","organizations_url":"https://api.github.com/users/kristian-puccio/orgs","repos_url":"https://api.github.com/users/kristian-puccio/repos","events_url":"https://api.github.com/users/kristian-puccio/events{/privacy}","received_events_url":"https://api.github.com/users/kristian-puccio/received_events","type":"User","site_admin":false},"created_at":"2015-11-09T02:25:19Z","updated_at":"2015-11-09T02:25:19Z","body":"just to clarify to do this in asyncValidate you would dispatch a validation action that returned a promise.\r\nThe action creator then has access to getState if it returns a function and your using thunk.\r\n\r\nSeems a bit overkill to dispatch an action that doesn't result in a reducer being called just to get access to getState.\r\n\r\nOr maybe I'm thinking about this wrong?"}}