{"action":"closed","number":218,"pull_request":{"url":"https://api.github.com/repos/rackt/react-router-redux/pulls/218","id":56578057,"html_url":"https://github.com/rackt/react-router-redux/pull/218","diff_url":"https://github.com/rackt/react-router-redux/pull/218.diff","patch_url":"https://github.com/rackt/react-router-redux/pull/218.patch","issue_url":"https://api.github.com/repos/rackt/react-router-redux/issues/218","number":218,"state":"closed","locked":false,"title":"Support ImmutableJS: use getLocationState instead of getRouterState as mentioned in #140","user":{"login":"stepankuzmin","id":533564,"avatar_url":"https://avatars.githubusercontent.com/u/533564?v=3","gravatar_id":"","url":"https://api.github.com/users/stepankuzmin","html_url":"https://github.com/stepankuzmin","followers_url":"https://api.github.com/users/stepankuzmin/followers","following_url":"https://api.github.com/users/stepankuzmin/following{/other_user}","gists_url":"https://api.github.com/users/stepankuzmin/gists{/gist_id}","starred_url":"https://api.github.com/users/stepankuzmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stepankuzmin/subscriptions","organizations_url":"https://api.github.com/users/stepankuzmin/orgs","repos_url":"https://api.github.com/users/stepankuzmin/repos","events_url":"https://api.github.com/users/stepankuzmin/events{/privacy}","received_events_url":"https://api.github.com/users/stepankuzmin/received_events","type":"User","site_admin":false},"body":"This works for me with custom reducer:\r\n```js\r\nimport { UPDATE_LOCATION } from 'redux-simple-router'\r\n\r\nconst initialState = new Immutable.Map({\r\n  location: undefined\r\n})\r\n\r\nexport default function routeReducer(state = initialState, { type, payload: location }) {\r\n  if (type !== UPDATE_LOCATION) {\r\n    return state\r\n  }\r\n\r\n  return state.merge({ location })\r\n}\r\n```\r\n\r\nand this `selectLocationState`\r\n\r\n```js\r\n  const selectLocationState = function (state) {\r\n    const location = state.get('routing').get('location')\r\n    return location ? location.toJS() : location\r\n  }\r\n```","created_at":"2016-01-20T08:39:02Z","updated_at":"2016-01-24T16:47:24Z","closed_at":"2016-01-24T16:47:24Z","merged_at":"2016-01-24T16:47:24Z","merge_commit_sha":"10e4605395001f0d430dc1bfdf23ae2ecc2afd9f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rackt/react-router-redux/pulls/218/commits","review_comments_url":"https://api.github.com/repos/rackt/react-router-redux/pulls/218/comments","review_comment_url":"https://api.github.com/repos/rackt/react-router-redux/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rackt/react-router-redux/issues/218/comments","statuses_url":"https://api.github.com/repos/rackt/react-router-redux/statuses/22db2bb57d6a23661dbd6960864ec29da212a2e1","head":{"label":"stepankuzmin:master","ref":"master","sha":"22db2bb57d6a23661dbd6960864ec29da212a2e1","user":{"login":"stepankuzmin","id":533564,"avatar_url":"https://avatars.githubusercontent.com/u/533564?v=3","gravatar_id":"","url":"https://api.github.com/users/stepankuzmin","html_url":"https://github.com/stepankuzmin","followers_url":"https://api.github.com/users/stepankuzmin/followers","following_url":"https://api.github.com/users/stepankuzmin/following{/other_user}","gists_url":"https://api.github.com/users/stepankuzmin/gists{/gist_id}","starred_url":"https://api.github.com/users/stepankuzmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stepankuzmin/subscriptions","organizations_url":"https://api.github.com/users/stepankuzmin/orgs","repos_url":"https://api.github.com/users/stepankuzmin/repos","events_url":"https://api.github.com/users/stepankuzmin/events{/privacy}","received_events_url":"https://api.github.com/users/stepankuzmin/received_events","type":"User","site_admin":false},"repo":{"id":50012952,"name":"redux-simple-router","full_name":"stepankuzmin/redux-simple-router","owner":{"login":"stepankuzmin","id":533564,"avatar_url":"https://avatars.githubusercontent.com/u/533564?v=3","gravatar_id":"","url":"https://api.github.com/users/stepankuzmin","html_url":"https://github.com/stepankuzmin","followers_url":"https://api.github.com/users/stepankuzmin/followers","following_url":"https://api.github.com/users/stepankuzmin/following{/other_user}","gists_url":"https://api.github.com/users/stepankuzmin/gists{/gist_id}","starred_url":"https://api.github.com/users/stepankuzmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stepankuzmin/subscriptions","organizations_url":"https://api.github.com/users/stepankuzmin/orgs","repos_url":"https://api.github.com/users/stepankuzmin/repos","events_url":"https://api.github.com/users/stepankuzmin/events{/privacy}","received_events_url":"https://api.github.com/users/stepankuzmin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stepankuzmin/redux-simple-router","description":"Ruthlessly simple bindings to keep react-router and redux in sync","fork":true,"url":"https://api.github.com/repos/stepankuzmin/redux-simple-router","forks_url":"https://api.github.com/repos/stepankuzmin/redux-simple-router/forks","keys_url":"https://api.github.com/repos/stepankuzmin/redux-simple-router/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stepankuzmin/redux-simple-router/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stepankuzmin/redux-simple-router/teams","hooks_url":"https://api.github.com/repos/stepankuzmin/redux-simple-router/hooks","issue_events_url":"https://api.github.com/repos/stepankuzmin/redux-simple-router/issues/events{/number}","events_url":"https://api.github.com/repos/stepankuzmin/redux-simple-router/events","assignees_url":"https://api.github.com/repos/stepankuzmin/redux-simple-router/assignees{/user}","branches_url":"https://api.github.com/repos/stepankuzmin/redux-simple-router/branches{/branch}","tags_url":"https://api.github.com/repos/stepankuzmin/redux-simple-router/tags","blobs_url":"https://api.github.com/repos/stepankuzmin/redux-simple-router/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stepankuzmin/redux-simple-router/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stepankuzmin/redux-simple-router/git/refs{/sha}","trees_url":"https://api.github.com/repos/stepankuzmin/redux-simple-router/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stepankuzmin/redux-simple-router/statuses/{sha}","languages_url":"https://api.github.com/repos/stepankuzmin/redux-simple-router/languages","stargazers_url":"https://api.github.com/repos/stepankuzmin/redux-simple-router/stargazers","contributors_url":"https://api.github.com/repos/stepankuzmin/redux-simple-router/contributors","subscribers_url":"https://api.github.com/repos/stepankuzmin/redux-simple-router/subscribers","subscription_url":"https://api.github.com/repos/stepankuzmin/redux-simple-router/subscription","commits_url":"https://api.github.com/repos/stepankuzmin/redux-simple-router/commits{/sha}","git_commits_url":"https://api.github.com/repos/stepankuzmin/redux-simple-router/git/commits{/sha}","comments_url":"https://api.github.com/repos/stepankuzmin/redux-simple-router/comments{/number}","issue_comment_url":"https://api.github.com/repos/stepankuzmin/redux-simple-router/issues/comments{/number}","contents_url":"https://api.github.com/repos/stepankuzmin/redux-simple-router/contents/{+path}","compare_url":"https://api.github.com/repos/stepankuzmin/redux-simple-router/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stepankuzmin/redux-simple-router/merges","archive_url":"https://api.github.com/repos/stepankuzmin/redux-simple-router/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stepankuzmin/redux-simple-router/downloads","issues_url":"https://api.github.com/repos/stepankuzmin/redux-simple-router/issues{/number}","pulls_url":"https://api.github.com/repos/stepankuzmin/redux-simple-router/pulls{/number}","milestones_url":"https://api.github.com/repos/stepankuzmin/redux-simple-router/milestones{/number}","notifications_url":"https://api.github.com/repos/stepankuzmin/redux-simple-router/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stepankuzmin/redux-simple-router/labels{/name}","releases_url":"https://api.github.com/repos/stepankuzmin/redux-simple-router/releases{/id}","deployments_url":"https://api.github.com/repos/stepankuzmin/redux-simple-router/deployments","created_at":"2016-01-20T07:33:09Z","updated_at":"2016-01-20T07:33:10Z","pushed_at":"2016-01-20T08:35:37Z","git_url":"git://github.com/stepankuzmin/redux-simple-router.git","ssh_url":"git@github.com:stepankuzmin/redux-simple-router.git","clone_url":"https://github.com/stepankuzmin/redux-simple-router.git","svn_url":"https://github.com/stepankuzmin/redux-simple-router","homepage":"https://www.npmjs.com/package/redux-simple-router","size":157,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rackt:master","ref":"master","sha":"0da93f2aa2319858cdcda99ca545522460194f1b","user":{"login":"rackt","id":8261421,"avatar_url":"https://avatars.githubusercontent.com/u/8261421?v=3","gravatar_id":"","url":"https://api.github.com/users/rackt","html_url":"https://github.com/rackt","followers_url":"https://api.github.com/users/rackt/followers","following_url":"https://api.github.com/users/rackt/following{/other_user}","gists_url":"https://api.github.com/users/rackt/gists{/gist_id}","starred_url":"https://api.github.com/users/rackt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackt/subscriptions","organizations_url":"https://api.github.com/users/rackt/orgs","repos_url":"https://api.github.com/users/rackt/repos","events_url":"https://api.github.com/users/rackt/events{/privacy}","received_events_url":"https://api.github.com/users/rackt/received_events","type":"Organization","site_admin":false},"repo":{"id":45632603,"name":"react-router-redux","full_name":"rackt/react-router-redux","owner":{"login":"rackt","id":8261421,"avatar_url":"https://avatars.githubusercontent.com/u/8261421?v=3","gravatar_id":"","url":"https://api.github.com/users/rackt","html_url":"https://github.com/rackt","followers_url":"https://api.github.com/users/rackt/followers","following_url":"https://api.github.com/users/rackt/following{/other_user}","gists_url":"https://api.github.com/users/rackt/gists{/gist_id}","starred_url":"https://api.github.com/users/rackt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackt/subscriptions","organizations_url":"https://api.github.com/users/rackt/orgs","repos_url":"https://api.github.com/users/rackt/repos","events_url":"https://api.github.com/users/rackt/events{/privacy}","received_events_url":"https://api.github.com/users/rackt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rackt/react-router-redux","description":"Ruthlessly simple bindings to keep react-router and redux in sync","fork":false,"url":"https://api.github.com/repos/rackt/react-router-redux","forks_url":"https://api.github.com/repos/rackt/react-router-redux/forks","keys_url":"https://api.github.com/repos/rackt/react-router-redux/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rackt/react-router-redux/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rackt/react-router-redux/teams","hooks_url":"https://api.github.com/repos/rackt/react-router-redux/hooks","issue_events_url":"https://api.github.com/repos/rackt/react-router-redux/issues/events{/number}","events_url":"https://api.github.com/repos/rackt/react-router-redux/events","assignees_url":"https://api.github.com/repos/rackt/react-router-redux/assignees{/user}","branches_url":"https://api.github.com/repos/rackt/react-router-redux/branches{/branch}","tags_url":"https://api.github.com/repos/rackt/react-router-redux/tags","blobs_url":"https://api.github.com/repos/rackt/react-router-redux/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rackt/react-router-redux/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rackt/react-router-redux/git/refs{/sha}","trees_url":"https://api.github.com/repos/rackt/react-router-redux/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rackt/react-router-redux/statuses/{sha}","languages_url":"https://api.github.com/repos/rackt/react-router-redux/languages","stargazers_url":"https://api.github.com/repos/rackt/react-router-redux/stargazers","contributors_url":"https://api.github.com/repos/rackt/react-router-redux/contributors","subscribers_url":"https://api.github.com/repos/rackt/react-router-redux/subscribers","subscription_url":"https://api.github.com/repos/rackt/react-router-redux/subscription","commits_url":"https://api.github.com/repos/rackt/react-router-redux/commits{/sha}","git_commits_url":"https://api.github.com/repos/rackt/react-router-redux/git/commits{/sha}","comments_url":"https://api.github.com/repos/rackt/react-router-redux/comments{/number}","issue_comment_url":"https://api.github.com/repos/rackt/react-router-redux/issues/comments{/number}","contents_url":"https://api.github.com/repos/rackt/react-router-redux/contents/{+path}","compare_url":"https://api.github.com/repos/rackt/react-router-redux/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rackt/react-router-redux/merges","archive_url":"https://api.github.com/repos/rackt/react-router-redux/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rackt/react-router-redux/downloads","issues_url":"https://api.github.com/repos/rackt/react-router-redux/issues{/number}","pulls_url":"https://api.github.com/repos/rackt/react-router-redux/pulls{/number}","milestones_url":"https://api.github.com/repos/rackt/react-router-redux/milestones{/number}","notifications_url":"https://api.github.com/repos/rackt/react-router-redux/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rackt/react-router-redux/labels{/name}","releases_url":"https://api.github.com/repos/rackt/react-router-redux/releases{/id}","deployments_url":"https://api.github.com/repos/rackt/react-router-redux/deployments","created_at":"2015-11-05T18:59:42Z","updated_at":"2016-01-24T16:45:56Z","pushed_at":"2016-01-24T16:47:24Z","git_url":"git://github.com/rackt/react-router-redux.git","ssh_url":"git@github.com:rackt/react-router-redux.git","clone_url":"https://github.com/rackt/react-router-redux.git","svn_url":"https://github.com/rackt/react-router-redux","homepage":"https://www.npmjs.com/package/redux-simple-router","size":203,"stargazers_count":1670,"watchers_count":1670,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":111,"mirror_url":null,"open_issues_count":7,"forks":111,"open_issues":7,"watchers":1670,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rackt/react-router-redux/pulls/218"},"html":{"href":"https://github.com/rackt/react-router-redux/pull/218"},"issue":{"href":"https://api.github.com/repos/rackt/react-router-redux/issues/218"},"comments":{"href":"https://api.github.com/repos/rackt/react-router-redux/issues/218/comments"},"review_comments":{"href":"https://api.github.com/repos/rackt/react-router-redux/pulls/218/comments"},"review_comment":{"href":"https://api.github.com/repos/rackt/react-router-redux/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rackt/react-router-redux/pulls/218/commits"},"statuses":{"href":"https://api.github.com/repos/rackt/react-router-redux/statuses/22db2bb57d6a23661dbd6960864ec29da212a2e1"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"timdorr","id":17882,"avatar_url":"https://avatars.githubusercontent.com/u/17882?v=3","gravatar_id":"","url":"https://api.github.com/users/timdorr","html_url":"https://github.com/timdorr","followers_url":"https://api.github.com/users/timdorr/followers","following_url":"https://api.github.com/users/timdorr/following{/other_user}","gists_url":"https://api.github.com/users/timdorr/gists{/gist_id}","starred_url":"https://api.github.com/users/timdorr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timdorr/subscriptions","organizations_url":"https://api.github.com/users/timdorr/orgs","repos_url":"https://api.github.com/users/timdorr/repos","events_url":"https://api.github.com/users/timdorr/events{/privacy}","received_events_url":"https://api.github.com/users/timdorr/received_events","type":"User","site_admin":false},"comments":3,"review_comments":0,"commits":1,"additions":7,"deletions":7,"changed_files":2}}