{"action":"created","comment":{"url":"https://api.github.com/repos/omnidan/redux-undo/pulls/comments/55921553","id":55921553,"diff_hunk":"@@ -289,11 +291,12 @@ export default function undoable (reducer, rawConfig = {}) {\n           }\n         }\n \n-        if (history.present !== res) {\n+        // Don't add entry to history if it was just created\n+        if ((justCreatedHistory && history.present === res) || action.type === '@@redux-undo/INIT') {","path":"src/index.js","position":18,"original_position":18,"commit_id":"7032876571a36c5ba02f2d95c0553c49a1326b35","original_commit_id":"7032876571a36c5ba02f2d95c0553c49a1326b35","user":{"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},"body":"Just a note, we are using `@@redux-undo/INIT` here, **not** `@@redux/INIT`. We can deal with our own init action in any way we please, just don't touch `@@redux/INIT` :wink: ","created_at":"2016-03-12T13:34:00Z","updated_at":"2016-03-12T13:34:00Z","html_url":"https://github.com/omnidan/redux-undo/pull/59#discussion_r55921553","pull_request_url":"https://api.github.com/repos/omnidan/redux-undo/pulls/59","_links":{"self":{"href":"https://api.github.com/repos/omnidan/redux-undo/pulls/comments/55921553"},"html":{"href":"https://github.com/omnidan/redux-undo/pull/59#discussion_r55921553"},"pull_request":{"href":"https://api.github.com/repos/omnidan/redux-undo/pulls/59"}}},"pull_request":{"url":"https://api.github.com/repos/omnidan/redux-undo/pulls/59","id":62615206,"html_url":"https://github.com/omnidan/redux-undo/pull/59","diff_url":"https://github.com/omnidan/redux-undo/pull/59.diff","patch_url":"https://github.com/omnidan/redux-undo/pull/59.patch","issue_url":"https://api.github.com/repos/omnidan/redux-undo/issues/59","number":59,"state":"open","locked":false,"title":"Distinct state fixes","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},"body":"I think this fixes the distinctState problem.\r\n\r\nAll actions are recorded again, like before until you add the distinct filter","created_at":"2016-03-11T22:57:38Z","updated_at":"2016-03-12T13:34:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"43454521ef4aef3c44cce95fc06dc0bb94375cc0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/omnidan/redux-undo/pulls/59/commits","review_comments_url":"https://api.github.com/repos/omnidan/redux-undo/pulls/59/comments","review_comment_url":"https://api.github.com/repos/omnidan/redux-undo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/omnidan/redux-undo/issues/59/comments","statuses_url":"https://api.github.com/repos/omnidan/redux-undo/statuses/7032876571a36c5ba02f2d95c0553c49a1326b35","head":{"label":"omnidan:distinct_state_fixes","ref":"distinct_state_fixes","sha":"7032876571a36c5ba02f2d95c0553c49a1326b35","user":{"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},"repo":{"id":42685034,"name":"redux-undo","full_name":"omnidan/redux-undo","owner":{"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},"private":false,"html_url":"https://github.com/omnidan/redux-undo","description":":recycle: higher order reducer to add undo/redo functionality to redux state containers","fork":false,"url":"https://api.github.com/repos/omnidan/redux-undo","forks_url":"https://api.github.com/repos/omnidan/redux-undo/forks","keys_url":"https://api.github.com/repos/omnidan/redux-undo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/omnidan/redux-undo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/omnidan/redux-undo/teams","hooks_url":"https://api.github.com/repos/omnidan/redux-undo/hooks","issue_events_url":"https://api.github.com/repos/omnidan/redux-undo/issues/events{/number}","events_url":"https://api.github.com/repos/omnidan/redux-undo/events","assignees_url":"https://api.github.com/repos/omnidan/redux-undo/assignees{/user}","branches_url":"https://api.github.com/repos/omnidan/redux-undo/branches{/branch}","tags_url":"https://api.github.com/repos/omnidan/redux-undo/tags","blobs_url":"https://api.github.com/repos/omnidan/redux-undo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/omnidan/redux-undo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/omnidan/redux-undo/git/refs{/sha}","trees_url":"https://api.github.com/repos/omnidan/redux-undo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/omnidan/redux-undo/statuses/{sha}","languages_url":"https://api.github.com/repos/omnidan/redux-undo/languages","stargazers_url":"https://api.github.com/repos/omnidan/redux-undo/stargazers","contributors_url":"https://api.github.com/repos/omnidan/redux-undo/contributors","subscribers_url":"https://api.github.com/repos/omnidan/redux-undo/subscribers","subscription_url":"https://api.github.com/repos/omnidan/redux-undo/subscription","commits_url":"https://api.github.com/repos/omnidan/redux-undo/commits{/sha}","git_commits_url":"https://api.github.com/repos/omnidan/redux-undo/git/commits{/sha}","comments_url":"https://api.github.com/repos/omnidan/redux-undo/comments{/number}","issue_comment_url":"https://api.github.com/repos/omnidan/redux-undo/issues/comments{/number}","contents_url":"https://api.github.com/repos/omnidan/redux-undo/contents/{+path}","compare_url":"https://api.github.com/repos/omnidan/redux-undo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/omnidan/redux-undo/merges","archive_url":"https://api.github.com/repos/omnidan/redux-undo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/omnidan/redux-undo/downloads","issues_url":"https://api.github.com/repos/omnidan/redux-undo/issues{/number}","pulls_url":"https://api.github.com/repos/omnidan/redux-undo/pulls{/number}","milestones_url":"https://api.github.com/repos/omnidan/redux-undo/milestones{/number}","notifications_url":"https://api.github.com/repos/omnidan/redux-undo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/omnidan/redux-undo/labels{/name}","releases_url":"https://api.github.com/repos/omnidan/redux-undo/releases{/id}","deployments_url":"https://api.github.com/repos/omnidan/redux-undo/deployments","created_at":"2015-09-17T22:20:00Z","updated_at":"2016-03-11T15:24:28Z","pushed_at":"2016-03-12T13:04:41Z","git_url":"git://github.com/omnidan/redux-undo.git","ssh_url":"git@github.com:omnidan/redux-undo.git","clone_url":"https://github.com/omnidan/redux-undo.git","svn_url":"https://github.com/omnidan/redux-undo","homepage":"","size":110,"stargazers_count":622,"watchers_count":622,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":20,"mirror_url":null,"open_issues_count":10,"forks":20,"open_issues":10,"watchers":622,"default_branch":"master"}},"base":{"label":"omnidan:v1.0.0-fixes","ref":"v1.0.0-fixes","sha":"6c5158cb3ace9e24e94e81276d9d236bf8ea86de","user":{"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},"repo":{"id":42685034,"name":"redux-undo","full_name":"omnidan/redux-undo","owner":{"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},"private":false,"html_url":"https://github.com/omnidan/redux-undo","description":":recycle: higher order reducer to add undo/redo functionality to redux state containers","fork":false,"url":"https://api.github.com/repos/omnidan/redux-undo","forks_url":"https://api.github.com/repos/omnidan/redux-undo/forks","keys_url":"https://api.github.com/repos/omnidan/redux-undo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/omnidan/redux-undo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/omnidan/redux-undo/teams","hooks_url":"https://api.github.com/repos/omnidan/redux-undo/hooks","issue_events_url":"https://api.github.com/repos/omnidan/redux-undo/issues/events{/number}","events_url":"https://api.github.com/repos/omnidan/redux-undo/events","assignees_url":"https://api.github.com/repos/omnidan/redux-undo/assignees{/user}","branches_url":"https://api.github.com/repos/omnidan/redux-undo/branches{/branch}","tags_url":"https://api.github.com/repos/omnidan/redux-undo/tags","blobs_url":"https://api.github.com/repos/omnidan/redux-undo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/omnidan/redux-undo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/omnidan/redux-undo/git/refs{/sha}","trees_url":"https://api.github.com/repos/omnidan/redux-undo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/omnidan/redux-undo/statuses/{sha}","languages_url":"https://api.github.com/repos/omnidan/redux-undo/languages","stargazers_url":"https://api.github.com/repos/omnidan/redux-undo/stargazers","contributors_url":"https://api.github.com/repos/omnidan/redux-undo/contributors","subscribers_url":"https://api.github.com/repos/omnidan/redux-undo/subscribers","subscription_url":"https://api.github.com/repos/omnidan/redux-undo/subscription","commits_url":"https://api.github.com/repos/omnidan/redux-undo/commits{/sha}","git_commits_url":"https://api.github.com/repos/omnidan/redux-undo/git/commits{/sha}","comments_url":"https://api.github.com/repos/omnidan/redux-undo/comments{/number}","issue_comment_url":"https://api.github.com/repos/omnidan/redux-undo/issues/comments{/number}","contents_url":"https://api.github.com/repos/omnidan/redux-undo/contents/{+path}","compare_url":"https://api.github.com/repos/omnidan/redux-undo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/omnidan/redux-undo/merges","archive_url":"https://api.github.com/repos/omnidan/redux-undo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/omnidan/redux-undo/downloads","issues_url":"https://api.github.com/repos/omnidan/redux-undo/issues{/number}","pulls_url":"https://api.github.com/repos/omnidan/redux-undo/pulls{/number}","milestones_url":"https://api.github.com/repos/omnidan/redux-undo/milestones{/number}","notifications_url":"https://api.github.com/repos/omnidan/redux-undo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/omnidan/redux-undo/labels{/name}","releases_url":"https://api.github.com/repos/omnidan/redux-undo/releases{/id}","deployments_url":"https://api.github.com/repos/omnidan/redux-undo/deployments","created_at":"2015-09-17T22:20:00Z","updated_at":"2016-03-11T15:24:28Z","pushed_at":"2016-03-12T13:04:41Z","git_url":"git://github.com/omnidan/redux-undo.git","ssh_url":"git@github.com:omnidan/redux-undo.git","clone_url":"https://github.com/omnidan/redux-undo.git","svn_url":"https://github.com/omnidan/redux-undo","homepage":"","size":110,"stargazers_count":622,"watchers_count":622,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":20,"mirror_url":null,"open_issues_count":10,"forks":20,"open_issues":10,"watchers":622,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/omnidan/redux-undo/pulls/59"},"html":{"href":"https://github.com/omnidan/redux-undo/pull/59"},"issue":{"href":"https://api.github.com/repos/omnidan/redux-undo/issues/59"},"comments":{"href":"https://api.github.com/repos/omnidan/redux-undo/issues/59/comments"},"review_comments":{"href":"https://api.github.com/repos/omnidan/redux-undo/pulls/59/comments"},"review_comment":{"href":"https://api.github.com/repos/omnidan/redux-undo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/omnidan/redux-undo/pulls/59/commits"},"statuses":{"href":"https://api.github.com/repos/omnidan/redux-undo/statuses/7032876571a36c5ba02f2d95c0553c49a1326b35"}}}}