{"action":"closed","issue":{"url":"https://api.github.com/repos/rt2zz/redux-persist/issues/21","labels_url":"https://api.github.com/repos/rt2zz/redux-persist/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/rt2zz/redux-persist/issues/21/comments","events_url":"https://api.github.com/repos/rt2zz/redux-persist/issues/21/events","html_url":"https://github.com/rt2zz/redux-persist/issues/21","id":112887721,"number":21,"title":"Having Rehydrated values passed in the store's initialState","user":{"login":"zalmoxisus","id":7957859,"avatar_url":"https://avatars.githubusercontent.com/u/7957859?v=3","gravatar_id":"","url":"https://api.github.com/users/zalmoxisus","html_url":"https://github.com/zalmoxisus","followers_url":"https://api.github.com/users/zalmoxisus/followers","following_url":"https://api.github.com/users/zalmoxisus/following{/other_user}","gists_url":"https://api.github.com/users/zalmoxisus/gists{/gist_id}","starred_url":"https://api.github.com/users/zalmoxisus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalmoxisus/subscriptions","organizations_url":"https://api.github.com/users/zalmoxisus/orgs","repos_url":"https://api.github.com/users/zalmoxisus/repos","events_url":"https://api.github.com/users/zalmoxisus/events{/privacy}","received_events_url":"https://api.github.com/users/zalmoxisus/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-10-22T20:44:27Z","updated_at":"2015-11-02T00:44:24Z","closed_at":"2015-11-02T00:44:24Z","body":"I still looking into it, but it would be great to achieve. Now the reducers are initiated twice: the first one with the initial value, and the second - with the rehydrated one. I tried to find some solutions, but all of them seems to be antipattern, except of this. Actually, this is the purpose of the store's initialState to pass the rehydrating state from server or localStorage.\r\nWhat do you think if we get the data from the localStorage before creating the store?"}}