{"action":"created","comment":{"url":"https://api.github.com/repos/vslinko/ripster/pulls/comments/49951911","id":49951911,"diff_hunk":"@@ -9,19 +9,28 @@ import { RelayRoutingContext } from 'react-router-relay';\n import createStore from './createStore';\n import init from './init';\n import routes from './routes';\n+import RelayNetworkLayer from './RelayNetworkLayer';\n \n import { ReduxIntlContainer } from 'frontend/bundles/common/components/ReduxIntl';\n+import { addNotification } from 'frontend/bundles/notification/actionCreators';\n \n export default async function initApp() {\n+  const store = createStore();\n+\n+  const onRelayError = (error) => {\n+    store.dispatch(addNotification({\n+      important: true,\n+      text: error.message,\n+    }));\n+  };\n+\n   try {\n     Relay.injectNetworkLayer(\n-      new Relay.DefaultNetworkLayer('/graphql', {\n+      new RelayNetworkLayer('/graphql', {","path":"src/frontend/initApp.js","position":28,"original_position":28,"commit_id":"84738748073c2ad75c7a5994ffc36e535dc86f45","original_commit_id":"84738748073c2ad75c7a5994ffc36e535dc86f45","user":{"login":"vslinko","id":205823,"avatar_url":"https://avatars.githubusercontent.com/u/205823?v=3","gravatar_id":"","url":"https://api.github.com/users/vslinko","html_url":"https://github.com/vslinko","followers_url":"https://api.github.com/users/vslinko/followers","following_url":"https://api.github.com/users/vslinko/following{/other_user}","gists_url":"https://api.github.com/users/vslinko/gists{/gist_id}","starred_url":"https://api.github.com/users/vslinko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vslinko/subscriptions","organizations_url":"https://api.github.com/users/vslinko/orgs","repos_url":"https://api.github.com/users/vslinko/repos","events_url":"https://api.github.com/users/vslinko/events{/privacy}","received_events_url":"https://api.github.com/users/vslinko/received_events","type":"User","site_admin":false},"body":"I think here should be more flexible API. For example we could merge fetch options with other network layer options:\r\n```js\r\nnew CustomNetworkLayer('/graphql', {\r\n  fetchOptions: {\r\n    credentials: 'same-origin',\r\n  },\r\n  onError,\r\n});\r\n```","created_at":"2016-01-17T20:32:08Z","updated_at":"2016-01-17T20:32:08Z","html_url":"https://github.com/vslinko/ripster/pull/50#discussion_r49951911","pull_request_url":"https://api.github.com/repos/vslinko/ripster/pulls/50","_links":{"self":{"href":"https://api.github.com/repos/vslinko/ripster/pulls/comments/49951911"},"html":{"href":"https://github.com/vslinko/ripster/pull/50#discussion_r49951911"},"pull_request":{"href":"https://api.github.com/repos/vslinko/ripster/pulls/50"}}},"pull_request":{"url":"https://api.github.com/repos/vslinko/ripster/pulls/50","id":54606653,"html_url":"https://github.com/vslinko/ripster/pull/50","diff_url":"https://github.com/vslinko/ripster/pull/50.diff","patch_url":"https://github.com/vslinko/ripster/pull/50.patch","issue_url":"https://api.github.com/repos/vslinko/ripster/issues/50","number":50,"state":"open","locked":false,"title":"Notification","user":{"login":"bsr203","id":1966521,"avatar_url":"https://avatars.githubusercontent.com/u/1966521?v=3","gravatar_id":"","url":"https://api.github.com/users/bsr203","html_url":"https://github.com/bsr203","followers_url":"https://api.github.com/users/bsr203/followers","following_url":"https://api.github.com/users/bsr203/following{/other_user}","gists_url":"https://api.github.com/users/bsr203/gists{/gist_id}","starred_url":"https://api.github.com/users/bsr203/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsr203/subscriptions","organizations_url":"https://api.github.com/users/bsr203/orgs","repos_url":"https://api.github.com/users/bsr203/repos","events_url":"https://api.github.com/users/bsr203/events{/privacy}","received_events_url":"https://api.github.com/users/bsr203/received_events","type":"User","site_admin":false},"body":"hi,\r\n\r\nThe first commit is working fine. I then tried to use `redux-act` but there is an issue on how I register the action with store as the reducers are not triggered on action. Can you please check. Also, you may comment on placement of new files.\r\n\r\nCheers,\r\nbsr\r\n","created_at":"2015-12-26T19:55:25Z","updated_at":"2016-01-17T20:32:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"61afccba7612ea4b1b644b5fc788639d9446f974","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/vslinko/ripster/pulls/50/commits","review_comments_url":"https://api.github.com/repos/vslinko/ripster/pulls/50/comments","review_comment_url":"https://api.github.com/repos/vslinko/ripster/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vslinko/ripster/issues/50/comments","statuses_url":"https://api.github.com/repos/vslinko/ripster/statuses/84738748073c2ad75c7a5994ffc36e535dc86f45","head":{"label":"bsr203:master","ref":"master","sha":"84738748073c2ad75c7a5994ffc36e535dc86f45","user":{"login":"bsr203","id":1966521,"avatar_url":"https://avatars.githubusercontent.com/u/1966521?v=3","gravatar_id":"","url":"https://api.github.com/users/bsr203","html_url":"https://github.com/bsr203","followers_url":"https://api.github.com/users/bsr203/followers","following_url":"https://api.github.com/users/bsr203/following{/other_user}","gists_url":"https://api.github.com/users/bsr203/gists{/gist_id}","starred_url":"https://api.github.com/users/bsr203/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsr203/subscriptions","organizations_url":"https://api.github.com/users/bsr203/orgs","repos_url":"https://api.github.com/users/bsr203/repos","events_url":"https://api.github.com/users/bsr203/events{/privacy}","received_events_url":"https://api.github.com/users/bsr203/received_events","type":"User","site_admin":false},"repo":{"id":48598066,"name":"ripster","full_name":"bsr203/ripster","owner":{"login":"bsr203","id":1966521,"avatar_url":"https://avatars.githubusercontent.com/u/1966521?v=3","gravatar_id":"","url":"https://api.github.com/users/bsr203","html_url":"https://github.com/bsr203","followers_url":"https://api.github.com/users/bsr203/followers","following_url":"https://api.github.com/users/bsr203/following{/other_user}","gists_url":"https://api.github.com/users/bsr203/gists{/gist_id}","starred_url":"https://api.github.com/users/bsr203/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsr203/subscriptions","organizations_url":"https://api.github.com/users/bsr203/orgs","repos_url":"https://api.github.com/users/bsr203/repos","events_url":"https://api.github.com/users/bsr203/events{/privacy}","received_events_url":"https://api.github.com/users/bsr203/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bsr203/ripster","description":"","fork":true,"url":"https://api.github.com/repos/bsr203/ripster","forks_url":"https://api.github.com/repos/bsr203/ripster/forks","keys_url":"https://api.github.com/repos/bsr203/ripster/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bsr203/ripster/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bsr203/ripster/teams","hooks_url":"https://api.github.com/repos/bsr203/ripster/hooks","issue_events_url":"https://api.github.com/repos/bsr203/ripster/issues/events{/number}","events_url":"https://api.github.com/repos/bsr203/ripster/events","assignees_url":"https://api.github.com/repos/bsr203/ripster/assignees{/user}","branches_url":"https://api.github.com/repos/bsr203/ripster/branches{/branch}","tags_url":"https://api.github.com/repos/bsr203/ripster/tags","blobs_url":"https://api.github.com/repos/bsr203/ripster/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bsr203/ripster/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bsr203/ripster/git/refs{/sha}","trees_url":"https://api.github.com/repos/bsr203/ripster/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bsr203/ripster/statuses/{sha}","languages_url":"https://api.github.com/repos/bsr203/ripster/languages","stargazers_url":"https://api.github.com/repos/bsr203/ripster/stargazers","contributors_url":"https://api.github.com/repos/bsr203/ripster/contributors","subscribers_url":"https://api.github.com/repos/bsr203/ripster/subscribers","subscription_url":"https://api.github.com/repos/bsr203/ripster/subscription","commits_url":"https://api.github.com/repos/bsr203/ripster/commits{/sha}","git_commits_url":"https://api.github.com/repos/bsr203/ripster/git/commits{/sha}","comments_url":"https://api.github.com/repos/bsr203/ripster/comments{/number}","issue_comment_url":"https://api.github.com/repos/bsr203/ripster/issues/comments{/number}","contents_url":"https://api.github.com/repos/bsr203/ripster/contents/{+path}","compare_url":"https://api.github.com/repos/bsr203/ripster/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bsr203/ripster/merges","archive_url":"https://api.github.com/repos/bsr203/ripster/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bsr203/ripster/downloads","issues_url":"https://api.github.com/repos/bsr203/ripster/issues{/number}","pulls_url":"https://api.github.com/repos/bsr203/ripster/pulls{/number}","milestones_url":"https://api.github.com/repos/bsr203/ripster/milestones{/number}","notifications_url":"https://api.github.com/repos/bsr203/ripster/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bsr203/ripster/labels{/name}","releases_url":"https://api.github.com/repos/bsr203/ripster/releases{/id}","created_at":"2015-12-26T03:18:05Z","updated_at":"2015-12-26T03:18:06Z","pushed_at":"2015-12-26T19:58:34Z","git_url":"git://github.com/bsr203/ripster.git","ssh_url":"git@github.com:bsr203/ripster.git","clone_url":"https://github.com/bsr203/ripster.git","svn_url":"https://github.com/bsr203/ripster","homepage":null,"size":324,"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":"vslinko:master","ref":"master","sha":"976d52877876184125cd879222a4714263b568d8","user":{"login":"vslinko","id":205823,"avatar_url":"https://avatars.githubusercontent.com/u/205823?v=3","gravatar_id":"","url":"https://api.github.com/users/vslinko","html_url":"https://github.com/vslinko","followers_url":"https://api.github.com/users/vslinko/followers","following_url":"https://api.github.com/users/vslinko/following{/other_user}","gists_url":"https://api.github.com/users/vslinko/gists{/gist_id}","starred_url":"https://api.github.com/users/vslinko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vslinko/subscriptions","organizations_url":"https://api.github.com/users/vslinko/orgs","repos_url":"https://api.github.com/users/vslinko/repos","events_url":"https://api.github.com/users/vslinko/events{/privacy}","received_events_url":"https://api.github.com/users/vslinko/received_events","type":"User","site_admin":false},"repo":{"id":38616410,"name":"ripster","full_name":"vslinko/ripster","owner":{"login":"vslinko","id":205823,"avatar_url":"https://avatars.githubusercontent.com/u/205823?v=3","gravatar_id":"","url":"https://api.github.com/users/vslinko","html_url":"https://github.com/vslinko","followers_url":"https://api.github.com/users/vslinko/followers","following_url":"https://api.github.com/users/vslinko/following{/other_user}","gists_url":"https://api.github.com/users/vslinko/gists{/gist_id}","starred_url":"https://api.github.com/users/vslinko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vslinko/subscriptions","organizations_url":"https://api.github.com/users/vslinko/orgs","repos_url":"https://api.github.com/users/vslinko/repos","events_url":"https://api.github.com/users/vslinko/events{/privacy}","received_events_url":"https://api.github.com/users/vslinko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vslinko/ripster","description":"","fork":false,"url":"https://api.github.com/repos/vslinko/ripster","forks_url":"https://api.github.com/repos/vslinko/ripster/forks","keys_url":"https://api.github.com/repos/vslinko/ripster/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vslinko/ripster/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vslinko/ripster/teams","hooks_url":"https://api.github.com/repos/vslinko/ripster/hooks","issue_events_url":"https://api.github.com/repos/vslinko/ripster/issues/events{/number}","events_url":"https://api.github.com/repos/vslinko/ripster/events","assignees_url":"https://api.github.com/repos/vslinko/ripster/assignees{/user}","branches_url":"https://api.github.com/repos/vslinko/ripster/branches{/branch}","tags_url":"https://api.github.com/repos/vslinko/ripster/tags","blobs_url":"https://api.github.com/repos/vslinko/ripster/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vslinko/ripster/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vslinko/ripster/git/refs{/sha}","trees_url":"https://api.github.com/repos/vslinko/ripster/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vslinko/ripster/statuses/{sha}","languages_url":"https://api.github.com/repos/vslinko/ripster/languages","stargazers_url":"https://api.github.com/repos/vslinko/ripster/stargazers","contributors_url":"https://api.github.com/repos/vslinko/ripster/contributors","subscribers_url":"https://api.github.com/repos/vslinko/ripster/subscribers","subscription_url":"https://api.github.com/repos/vslinko/ripster/subscription","commits_url":"https://api.github.com/repos/vslinko/ripster/commits{/sha}","git_commits_url":"https://api.github.com/repos/vslinko/ripster/git/commits{/sha}","comments_url":"https://api.github.com/repos/vslinko/ripster/comments{/number}","issue_comment_url":"https://api.github.com/repos/vslinko/ripster/issues/comments{/number}","contents_url":"https://api.github.com/repos/vslinko/ripster/contents/{+path}","compare_url":"https://api.github.com/repos/vslinko/ripster/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vslinko/ripster/merges","archive_url":"https://api.github.com/repos/vslinko/ripster/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vslinko/ripster/downloads","issues_url":"https://api.github.com/repos/vslinko/ripster/issues{/number}","pulls_url":"https://api.github.com/repos/vslinko/ripster/pulls{/number}","milestones_url":"https://api.github.com/repos/vslinko/ripster/milestones{/number}","notifications_url":"https://api.github.com/repos/vslinko/ripster/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vslinko/ripster/labels{/name}","releases_url":"https://api.github.com/repos/vslinko/ripster/releases{/id}","created_at":"2015-07-06T12:07:14Z","updated_at":"2016-01-15T16:45:24Z","pushed_at":"2015-12-29T10:38:14Z","git_url":"git://github.com/vslinko/ripster.git","ssh_url":"git@github.com:vslinko/ripster.git","clone_url":"https://github.com/vslinko/ripster.git","svn_url":"https://github.com/vslinko/ripster","homepage":null,"size":336,"stargazers_count":99,"watchers_count":99,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":11,"forks":11,"open_issues":11,"watchers":99,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vslinko/ripster/pulls/50"},"html":{"href":"https://github.com/vslinko/ripster/pull/50"},"issue":{"href":"https://api.github.com/repos/vslinko/ripster/issues/50"},"comments":{"href":"https://api.github.com/repos/vslinko/ripster/issues/50/comments"},"review_comments":{"href":"https://api.github.com/repos/vslinko/ripster/pulls/50/comments"},"review_comment":{"href":"https://api.github.com/repos/vslinko/ripster/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vslinko/ripster/pulls/50/commits"},"statuses":{"href":"https://api.github.com/repos/vslinko/ripster/statuses/84738748073c2ad75c7a5994ffc36e535dc86f45"}}}}