{"action":"created","comment":{"url":"https://api.github.com/repos/sslash/fruits-lib/pulls/comments/60476897","id":60476897,"diff_hunk":"@@ -0,0 +1,82 @@\n+import { Map, fromJS } from 'immutable';\n+import * as types from '../constants/actionTypes';\n+import Route from '../../models/Route';\n+\n+const initialState = fromJS({\n+    fetchRoutesError: false,\n+    isFetching: false,\n+    likedRoutes: [],\n+    routes: [],\n+});\n+\n+\n+export default function reducer (state = initialState, action) {\n+\n+\n+    if (!Map.isMap(state)) {","path":"src/redux/reducers/userRouteReducer.js","position":16,"original_position":16,"commit_id":"35bc8a4fe9683d5963f46a5ebef5b9753e25c748","original_commit_id":"35bc8a4fe9683d5963f46a5ebef5b9753e25c748","user":{"login":"sslash","id":1174520,"avatar_url":"https://avatars.githubusercontent.com/u/1174520?v=3","gravatar_id":"","url":"https://api.github.com/users/sslash","html_url":"https://github.com/sslash","followers_url":"https://api.github.com/users/sslash/followers","following_url":"https://api.github.com/users/sslash/following{/other_user}","gists_url":"https://api.github.com/users/sslash/gists{/gist_id}","starred_url":"https://api.github.com/users/sslash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sslash/subscriptions","organizations_url":"https://api.github.com/users/sslash/orgs","repos_url":"https://api.github.com/users/sslash/repos","events_url":"https://api.github.com/users/sslash/events{/privacy}","received_events_url":"https://api.github.com/users/sslash/received_events","type":"User","site_admin":false},"body":"er det bedre å bruke isIterable i stedenfor Map? (sånn vi gjør det de andre stedene). tror Map.isMap er mer spesifikk på typen, og vi ønsker bare å sjekke om state ikke er vanlig JS objekt","created_at":"2016-04-20T19:59:26Z","updated_at":"2016-04-20T19:59:26Z","html_url":"https://github.com/sslash/fruits-lib/pull/38#discussion_r60476897","pull_request_url":"https://api.github.com/repos/sslash/fruits-lib/pulls/38","_links":{"self":{"href":"https://api.github.com/repos/sslash/fruits-lib/pulls/comments/60476897"},"html":{"href":"https://github.com/sslash/fruits-lib/pull/38#discussion_r60476897"},"pull_request":{"href":"https://api.github.com/repos/sslash/fruits-lib/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/sslash/fruits-lib/pulls/38","id":67230445,"html_url":"https://github.com/sslash/fruits-lib/pull/38","diff_url":"https://github.com/sslash/fruits-lib/pull/38.diff","patch_url":"https://github.com/sslash/fruits-lib/pull/38.patch","issue_url":"https://api.github.com/repos/sslash/fruits-lib/issues/38","number":38,"state":"open","locked":false,"title":"use new userRouteReducer","user":{"login":"skeie","id":1346122,"avatar_url":"https://avatars.githubusercontent.com/u/1346122?v=3","gravatar_id":"","url":"https://api.github.com/users/skeie","html_url":"https://github.com/skeie","followers_url":"https://api.github.com/users/skeie/followers","following_url":"https://api.github.com/users/skeie/following{/other_user}","gists_url":"https://api.github.com/users/skeie/gists{/gist_id}","starred_url":"https://api.github.com/users/skeie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skeie/subscriptions","organizations_url":"https://api.github.com/users/skeie/orgs","repos_url":"https://api.github.com/users/skeie/repos","events_url":"https://api.github.com/users/skeie/events{/privacy}","received_events_url":"https://api.github.com/users/skeie/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-20T17:55:08Z","updated_at":"2016-04-20T19:59:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1bc89c59ffa626183638cbe9ee29554338f2e5f7","assignee":{"login":"sslash","id":1174520,"avatar_url":"https://avatars.githubusercontent.com/u/1174520?v=3","gravatar_id":"","url":"https://api.github.com/users/sslash","html_url":"https://github.com/sslash","followers_url":"https://api.github.com/users/sslash/followers","following_url":"https://api.github.com/users/sslash/following{/other_user}","gists_url":"https://api.github.com/users/sslash/gists{/gist_id}","starred_url":"https://api.github.com/users/sslash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sslash/subscriptions","organizations_url":"https://api.github.com/users/sslash/orgs","repos_url":"https://api.github.com/users/sslash/repos","events_url":"https://api.github.com/users/sslash/events{/privacy}","received_events_url":"https://api.github.com/users/sslash/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/sslash/fruits-lib/pulls/38/commits","review_comments_url":"https://api.github.com/repos/sslash/fruits-lib/pulls/38/comments","review_comment_url":"https://api.github.com/repos/sslash/fruits-lib/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sslash/fruits-lib/issues/38/comments","statuses_url":"https://api.github.com/repos/sslash/fruits-lib/statuses/35bc8a4fe9683d5963f46a5ebef5b9753e25c748","head":{"label":"sslash:refactor/routeUserReducer","ref":"refactor/routeUserReducer","sha":"35bc8a4fe9683d5963f46a5ebef5b9753e25c748","user":{"login":"sslash","id":1174520,"avatar_url":"https://avatars.githubusercontent.com/u/1174520?v=3","gravatar_id":"","url":"https://api.github.com/users/sslash","html_url":"https://github.com/sslash","followers_url":"https://api.github.com/users/sslash/followers","following_url":"https://api.github.com/users/sslash/following{/other_user}","gists_url":"https://api.github.com/users/sslash/gists{/gist_id}","starred_url":"https://api.github.com/users/sslash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sslash/subscriptions","organizations_url":"https://api.github.com/users/sslash/orgs","repos_url":"https://api.github.com/users/sslash/repos","events_url":"https://api.github.com/users/sslash/events{/privacy}","received_events_url":"https://api.github.com/users/sslash/received_events","type":"User","site_admin":false},"repo":{"id":49428496,"name":"fruits-lib","full_name":"sslash/fruits-lib","owner":{"login":"sslash","id":1174520,"avatar_url":"https://avatars.githubusercontent.com/u/1174520?v=3","gravatar_id":"","url":"https://api.github.com/users/sslash","html_url":"https://github.com/sslash","followers_url":"https://api.github.com/users/sslash/followers","following_url":"https://api.github.com/users/sslash/following{/other_user}","gists_url":"https://api.github.com/users/sslash/gists{/gist_id}","starred_url":"https://api.github.com/users/sslash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sslash/subscriptions","organizations_url":"https://api.github.com/users/sslash/orgs","repos_url":"https://api.github.com/users/sslash/repos","events_url":"https://api.github.com/users/sslash/events{/privacy}","received_events_url":"https://api.github.com/users/sslash/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sslash/fruits-lib","description":"","fork":false,"url":"https://api.github.com/repos/sslash/fruits-lib","forks_url":"https://api.github.com/repos/sslash/fruits-lib/forks","keys_url":"https://api.github.com/repos/sslash/fruits-lib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sslash/fruits-lib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sslash/fruits-lib/teams","hooks_url":"https://api.github.com/repos/sslash/fruits-lib/hooks","issue_events_url":"https://api.github.com/repos/sslash/fruits-lib/issues/events{/number}","events_url":"https://api.github.com/repos/sslash/fruits-lib/events","assignees_url":"https://api.github.com/repos/sslash/fruits-lib/assignees{/user}","branches_url":"https://api.github.com/repos/sslash/fruits-lib/branches{/branch}","tags_url":"https://api.github.com/repos/sslash/fruits-lib/tags","blobs_url":"https://api.github.com/repos/sslash/fruits-lib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sslash/fruits-lib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sslash/fruits-lib/git/refs{/sha}","trees_url":"https://api.github.com/repos/sslash/fruits-lib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sslash/fruits-lib/statuses/{sha}","languages_url":"https://api.github.com/repos/sslash/fruits-lib/languages","stargazers_url":"https://api.github.com/repos/sslash/fruits-lib/stargazers","contributors_url":"https://api.github.com/repos/sslash/fruits-lib/contributors","subscribers_url":"https://api.github.com/repos/sslash/fruits-lib/subscribers","subscription_url":"https://api.github.com/repos/sslash/fruits-lib/subscription","commits_url":"https://api.github.com/repos/sslash/fruits-lib/commits{/sha}","git_commits_url":"https://api.github.com/repos/sslash/fruits-lib/git/commits{/sha}","comments_url":"https://api.github.com/repos/sslash/fruits-lib/comments{/number}","issue_comment_url":"https://api.github.com/repos/sslash/fruits-lib/issues/comments{/number}","contents_url":"https://api.github.com/repos/sslash/fruits-lib/contents/{+path}","compare_url":"https://api.github.com/repos/sslash/fruits-lib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sslash/fruits-lib/merges","archive_url":"https://api.github.com/repos/sslash/fruits-lib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sslash/fruits-lib/downloads","issues_url":"https://api.github.com/repos/sslash/fruits-lib/issues{/number}","pulls_url":"https://api.github.com/repos/sslash/fruits-lib/pulls{/number}","milestones_url":"https://api.github.com/repos/sslash/fruits-lib/milestones{/number}","notifications_url":"https://api.github.com/repos/sslash/fruits-lib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sslash/fruits-lib/labels{/name}","releases_url":"https://api.github.com/repos/sslash/fruits-lib/releases{/id}","deployments_url":"https://api.github.com/repos/sslash/fruits-lib/deployments","created_at":"2016-01-11T13:35:17Z","updated_at":"2016-01-11T13:36:25Z","pushed_at":"2016-04-20T17:55:09Z","git_url":"git://github.com/sslash/fruits-lib.git","ssh_url":"git@github.com:sslash/fruits-lib.git","clone_url":"https://github.com/sslash/fruits-lib.git","svn_url":"https://github.com/sslash/fruits-lib","homepage":null,"size":870,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"sslash:master","ref":"master","sha":"e4d2bc19e132d9d43b167a43971519cedd15b6ae","user":{"login":"sslash","id":1174520,"avatar_url":"https://avatars.githubusercontent.com/u/1174520?v=3","gravatar_id":"","url":"https://api.github.com/users/sslash","html_url":"https://github.com/sslash","followers_url":"https://api.github.com/users/sslash/followers","following_url":"https://api.github.com/users/sslash/following{/other_user}","gists_url":"https://api.github.com/users/sslash/gists{/gist_id}","starred_url":"https://api.github.com/users/sslash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sslash/subscriptions","organizations_url":"https://api.github.com/users/sslash/orgs","repos_url":"https://api.github.com/users/sslash/repos","events_url":"https://api.github.com/users/sslash/events{/privacy}","received_events_url":"https://api.github.com/users/sslash/received_events","type":"User","site_admin":false},"repo":{"id":49428496,"name":"fruits-lib","full_name":"sslash/fruits-lib","owner":{"login":"sslash","id":1174520,"avatar_url":"https://avatars.githubusercontent.com/u/1174520?v=3","gravatar_id":"","url":"https://api.github.com/users/sslash","html_url":"https://github.com/sslash","followers_url":"https://api.github.com/users/sslash/followers","following_url":"https://api.github.com/users/sslash/following{/other_user}","gists_url":"https://api.github.com/users/sslash/gists{/gist_id}","starred_url":"https://api.github.com/users/sslash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sslash/subscriptions","organizations_url":"https://api.github.com/users/sslash/orgs","repos_url":"https://api.github.com/users/sslash/repos","events_url":"https://api.github.com/users/sslash/events{/privacy}","received_events_url":"https://api.github.com/users/sslash/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sslash/fruits-lib","description":"","fork":false,"url":"https://api.github.com/repos/sslash/fruits-lib","forks_url":"https://api.github.com/repos/sslash/fruits-lib/forks","keys_url":"https://api.github.com/repos/sslash/fruits-lib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sslash/fruits-lib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sslash/fruits-lib/teams","hooks_url":"https://api.github.com/repos/sslash/fruits-lib/hooks","issue_events_url":"https://api.github.com/repos/sslash/fruits-lib/issues/events{/number}","events_url":"https://api.github.com/repos/sslash/fruits-lib/events","assignees_url":"https://api.github.com/repos/sslash/fruits-lib/assignees{/user}","branches_url":"https://api.github.com/repos/sslash/fruits-lib/branches{/branch}","tags_url":"https://api.github.com/repos/sslash/fruits-lib/tags","blobs_url":"https://api.github.com/repos/sslash/fruits-lib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sslash/fruits-lib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sslash/fruits-lib/git/refs{/sha}","trees_url":"https://api.github.com/repos/sslash/fruits-lib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sslash/fruits-lib/statuses/{sha}","languages_url":"https://api.github.com/repos/sslash/fruits-lib/languages","stargazers_url":"https://api.github.com/repos/sslash/fruits-lib/stargazers","contributors_url":"https://api.github.com/repos/sslash/fruits-lib/contributors","subscribers_url":"https://api.github.com/repos/sslash/fruits-lib/subscribers","subscription_url":"https://api.github.com/repos/sslash/fruits-lib/subscription","commits_url":"https://api.github.com/repos/sslash/fruits-lib/commits{/sha}","git_commits_url":"https://api.github.com/repos/sslash/fruits-lib/git/commits{/sha}","comments_url":"https://api.github.com/repos/sslash/fruits-lib/comments{/number}","issue_comment_url":"https://api.github.com/repos/sslash/fruits-lib/issues/comments{/number}","contents_url":"https://api.github.com/repos/sslash/fruits-lib/contents/{+path}","compare_url":"https://api.github.com/repos/sslash/fruits-lib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sslash/fruits-lib/merges","archive_url":"https://api.github.com/repos/sslash/fruits-lib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sslash/fruits-lib/downloads","issues_url":"https://api.github.com/repos/sslash/fruits-lib/issues{/number}","pulls_url":"https://api.github.com/repos/sslash/fruits-lib/pulls{/number}","milestones_url":"https://api.github.com/repos/sslash/fruits-lib/milestones{/number}","notifications_url":"https://api.github.com/repos/sslash/fruits-lib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sslash/fruits-lib/labels{/name}","releases_url":"https://api.github.com/repos/sslash/fruits-lib/releases{/id}","deployments_url":"https://api.github.com/repos/sslash/fruits-lib/deployments","created_at":"2016-01-11T13:35:17Z","updated_at":"2016-01-11T13:36:25Z","pushed_at":"2016-04-20T17:55:09Z","git_url":"git://github.com/sslash/fruits-lib.git","ssh_url":"git@github.com:sslash/fruits-lib.git","clone_url":"https://github.com/sslash/fruits-lib.git","svn_url":"https://github.com/sslash/fruits-lib","homepage":null,"size":870,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sslash/fruits-lib/pulls/38"},"html":{"href":"https://github.com/sslash/fruits-lib/pull/38"},"issue":{"href":"https://api.github.com/repos/sslash/fruits-lib/issues/38"},"comments":{"href":"https://api.github.com/repos/sslash/fruits-lib/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/sslash/fruits-lib/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/sslash/fruits-lib/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sslash/fruits-lib/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/sslash/fruits-lib/statuses/35bc8a4fe9683d5963f46a5ebef5b9753e25c748"}}}}