{"action":"created","issue":{"url":"https://api.github.com/repos/omnidan/redux-undo/issues/43","repository_url":"https://api.github.com/repos/omnidan/redux-undo","labels_url":"https://api.github.com/repos/omnidan/redux-undo/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/omnidan/redux-undo/issues/43/comments","events_url":"https://api.github.com/repos/omnidan/redux-undo/issues/43/events","html_url":"https://github.com/omnidan/redux-undo/issues/43","id":136734806,"number":43,"title":"Initial history does not work","user":{"login":"neojski","id":3188532,"avatar_url":"https://avatars.githubusercontent.com/u/3188532?v=3","gravatar_id":"","url":"https://api.github.com/users/neojski","html_url":"https://github.com/neojski","followers_url":"https://api.github.com/users/neojski/followers","following_url":"https://api.github.com/users/neojski/following{/other_user}","gists_url":"https://api.github.com/users/neojski/gists{/gist_id}","starred_url":"https://api.github.com/users/neojski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neojski/subscriptions","organizations_url":"https://api.github.com/users/neojski/orgs","repos_url":"https://api.github.com/users/neojski/repos","events_url":"https://api.github.com/users/neojski/events{/privacy}","received_events_url":"https://api.github.com/users/neojski/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/omnidan/redux-undo/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"pl12133","id":12724311,"avatar_url":"https://avatars.githubusercontent.com/u/12724311?v=3","gravatar_id":"","url":"https://api.github.com/users/pl12133","html_url":"https://github.com/pl12133","followers_url":"https://api.github.com/users/pl12133/followers","following_url":"https://api.github.com/users/pl12133/following{/other_user}","gists_url":"https://api.github.com/users/pl12133/gists{/gist_id}","starred_url":"https://api.github.com/users/pl12133/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pl12133/subscriptions","organizations_url":"https://api.github.com/users/pl12133/orgs","repos_url":"https://api.github.com/users/pl12133/repos","events_url":"https://api.github.com/users/pl12133/events{/privacy}","received_events_url":"https://api.github.com/users/pl12133/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/omnidan/redux-undo/milestones/5","html_url":"https://github.com/omnidan/redux-undo/milestones/1.0-beta4","labels_url":"https://api.github.com/repos/omnidan/redux-undo/milestones/5/labels","id":1664492,"number":5,"title":"1.0-beta4","description":"","creator":{"login":"omnidan","id":668674,"avatar_url":"https://avatars.githubusercontent.com/u/668674?v=3","gravatar_id":"","url":"https://api.github.com/users/omnidan","html_url":"https://github.com/omnidan","followers_url":"https://api.github.com/users/omnidan/followers","following_url":"https://api.github.com/users/omnidan/following{/other_user}","gists_url":"https://api.github.com/users/omnidan/gists{/gist_id}","starred_url":"https://api.github.com/users/omnidan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omnidan/subscriptions","organizations_url":"https://api.github.com/users/omnidan/orgs","repos_url":"https://api.github.com/users/omnidan/repos","events_url":"https://api.github.com/users/omnidan/events{/privacy}","received_events_url":"https://api.github.com/users/omnidan/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":6,"state":"closed","created_at":"2016-03-24T18:38:28Z","updated_at":"2016-03-24T18:41:19Z","due_on":"2016-03-23T23:00:00Z","closed_at":"2016-03-24T18:41:19Z"},"comments":14,"created_at":"2016-02-26T15:56:22Z","updated_at":"2016-03-30T07:54:04Z","closed_at":null,"body":"I tried these:\r\n\r\n```js\r\n  let reducerA = (state = \"none\", action) => {\r\n    return state;\r\n  };\r\n  let reducerB = Redux.combineReducers({\r\n    reducerA,\r\n  }); \r\n  let store = Redux.createStore(undoable(reducerB, {\r\n    initialState: {\r\n      reducerA: \"some\"\r\n    },  \r\n    initialHistory: {\r\n      past: [{reducerA: \"past\"}],\r\n      present: {reducerA: \"some (from history)\"},\r\n      future: [{reducerA: \"future\"}]\r\n    }   \r\n  }));\r\n  debugger;\r\n\r\n\r\n  let store2 = Redux.createStore(undoable(reducerA, {\r\n    initialState: \"some\",\r\n    initialHistory: {\r\n      past: [\"past\"],\r\n      present: \"some (from history)\",\r\n      future: [\"future\"]\r\n    }   \r\n  }));\r\n  debugger;\r\n```\r\n\r\nBut the current state is `\"none\"` in both cases and the history is empty. In the second case if I don't set `state = \"none\"` initially the current state becomes `undefined`."},"comment":{"url":"https://api.github.com/repos/omnidan/redux-undo/issues/comments/203304508","html_url":"https://github.com/omnidan/redux-undo/issues/43#issuecomment-203304508","issue_url":"https://api.github.com/repos/omnidan/redux-undo/issues/43","id":203304508,"user":{"login":"tiemevanveen","id":1330668,"avatar_url":"https://avatars.githubusercontent.com/u/1330668?v=3","gravatar_id":"","url":"https://api.github.com/users/tiemevanveen","html_url":"https://github.com/tiemevanveen","followers_url":"https://api.github.com/users/tiemevanveen/followers","following_url":"https://api.github.com/users/tiemevanveen/following{/other_user}","gists_url":"https://api.github.com/users/tiemevanveen/gists{/gist_id}","starred_url":"https://api.github.com/users/tiemevanveen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiemevanveen/subscriptions","organizations_url":"https://api.github.com/users/tiemevanveen/orgs","repos_url":"https://api.github.com/users/tiemevanveen/repos","events_url":"https://api.github.com/users/tiemevanveen/events{/privacy}","received_events_url":"https://api.github.com/users/tiemevanveen/received_events","type":"User","site_admin":false},"created_at":"2016-03-30T07:54:03Z","updated_at":"2016-03-30T07:54:03Z","body":"And contain `past` and `future` by coïncident? Maybe we should add some more documentation?"}}