{"action":"created","comment":{"url":"https://api.github.com/repos/devknoll/relay-nested-routes/pulls/comments/37540888","id":37540888,"diff_hunk":"@@ -0,0 +1,40 @@\n+import React from 'react';\n+import Relay from 'react-relay';\n+\n+import * as Utils from './containerUtils';\n+import QueryAggregator from './QueryAggregator';\n+import getRouteParams from './getRouteParams';\n+import RouteGenerator from './RouteGenerator';\n+import getRelayRootProps from './getRelayRootProps';\n+\n+export default function generateElementCreator() {\n+  const queryAggregator = new QueryAggregator();\n+  const routeGenerator = new RouteGenerator();\n+\n+  return function createElement(Component, props) {\n+    const {branch, route, params, location, routeParams} = props;\n+\n+    // Wrap any Relay.Containers\n+    let element = !Relay.isContainer(Component) ? <Component {...props} /> :\n+      Utils.createContainerElement(\n+        Component,\n+        props,\n+        getRouteParams(routeParams, location.query, route.queryParams),\n+        getRelayRootProps(route),","path":"src/generateElementCreator.js","position":23,"original_position":23,"commit_id":"07a53a12dd935fd16f94607f83f29fcd176e864b","original_commit_id":"07a53a12dd935fd16f94607f83f29fcd176e864b","user":{"login":"taion","id":3112159,"avatar_url":"https://avatars.githubusercontent.com/u/3112159?v=3","gravatar_id":"","url":"https://api.github.com/users/taion","html_url":"https://github.com/taion","followers_url":"https://api.github.com/users/taion/followers","following_url":"https://api.github.com/users/taion/following{/other_user}","gists_url":"https://api.github.com/users/taion/gists{/gist_id}","starred_url":"https://api.github.com/users/taion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taion/subscriptions","organizations_url":"https://api.github.com/users/taion/orgs","repos_url":"https://api.github.com/users/taion/repos","events_url":"https://api.github.com/users/taion/events{/privacy}","received_events_url":"https://api.github.com/users/taion/received_events","type":"User","site_admin":false},"body":"Maybe we can be more explicit here and just have e.g. a `rootContainerProps` property on the route - it's quite a lot uglier to use, but makes the API more future-proof.","created_at":"2015-08-20T15:10:32Z","updated_at":"2015-08-20T15:10:32Z","html_url":"https://github.com/devknoll/relay-nested-routes/pull/10#discussion_r37540888","pull_request_url":"https://api.github.com/repos/devknoll/relay-nested-routes/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/devknoll/relay-nested-routes/pulls/comments/37540888"},"html":{"href":"https://github.com/devknoll/relay-nested-routes/pull/10#discussion_r37540888"},"pull_request":{"href":"https://api.github.com/repos/devknoll/relay-nested-routes/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/devknoll/relay-nested-routes/pulls/10","id":42888762,"html_url":"https://github.com/devknoll/relay-nested-routes/pull/10","diff_url":"https://github.com/devknoll/relay-nested-routes/pull/10.diff","patch_url":"https://github.com/devknoll/relay-nested-routes/pull/10.patch","issue_url":"https://api.github.com/repos/devknoll/relay-nested-routes/issues/10","number":10,"state":"open","locked":false,"title":"Revamp for 0.4.0","user":{"login":"devknoll","id":1477230,"avatar_url":"https://avatars.githubusercontent.com/u/1477230?v=3","gravatar_id":"","url":"https://api.github.com/users/devknoll","html_url":"https://github.com/devknoll","followers_url":"https://api.github.com/users/devknoll/followers","following_url":"https://api.github.com/users/devknoll/following{/other_user}","gists_url":"https://api.github.com/users/devknoll/gists{/gist_id}","starred_url":"https://api.github.com/users/devknoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devknoll/subscriptions","organizations_url":"https://api.github.com/users/devknoll/orgs","repos_url":"https://api.github.com/users/devknoll/repos","events_url":"https://api.github.com/users/devknoll/events{/privacy}","received_events_url":"https://api.github.com/users/devknoll/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-20T03:46:08Z","updated_at":"2015-08-20T15:10:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8d128e7f32c93c64988cdfde124abfd5dc82eddb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/devknoll/relay-nested-routes/pulls/10/commits","review_comments_url":"https://api.github.com/repos/devknoll/relay-nested-routes/pulls/10/comments","review_comment_url":"https://api.github.com/repos/devknoll/relay-nested-routes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/devknoll/relay-nested-routes/issues/10/comments","statuses_url":"https://api.github.com/repos/devknoll/relay-nested-routes/statuses/07a53a12dd935fd16f94607f83f29fcd176e864b","head":{"label":"devknoll:next","ref":"next","sha":"07a53a12dd935fd16f94607f83f29fcd176e864b","user":{"login":"devknoll","id":1477230,"avatar_url":"https://avatars.githubusercontent.com/u/1477230?v=3","gravatar_id":"","url":"https://api.github.com/users/devknoll","html_url":"https://github.com/devknoll","followers_url":"https://api.github.com/users/devknoll/followers","following_url":"https://api.github.com/users/devknoll/following{/other_user}","gists_url":"https://api.github.com/users/devknoll/gists{/gist_id}","starred_url":"https://api.github.com/users/devknoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devknoll/subscriptions","organizations_url":"https://api.github.com/users/devknoll/orgs","repos_url":"https://api.github.com/users/devknoll/repos","events_url":"https://api.github.com/users/devknoll/events{/privacy}","received_events_url":"https://api.github.com/users/devknoll/received_events","type":"User","site_admin":false},"repo":{"id":40947810,"name":"relay-nested-routes","full_name":"devknoll/relay-nested-routes","owner":{"login":"devknoll","id":1477230,"avatar_url":"https://avatars.githubusercontent.com/u/1477230?v=3","gravatar_id":"","url":"https://api.github.com/users/devknoll","html_url":"https://github.com/devknoll","followers_url":"https://api.github.com/users/devknoll/followers","following_url":"https://api.github.com/users/devknoll/following{/other_user}","gists_url":"https://api.github.com/users/devknoll/gists{/gist_id}","starred_url":"https://api.github.com/users/devknoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devknoll/subscriptions","organizations_url":"https://api.github.com/users/devknoll/orgs","repos_url":"https://api.github.com/users/devknoll/repos","events_url":"https://api.github.com/users/devknoll/events{/privacy}","received_events_url":"https://api.github.com/users/devknoll/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/devknoll/relay-nested-routes","description":"Nested react-router routes for Relay","fork":false,"url":"https://api.github.com/repos/devknoll/relay-nested-routes","forks_url":"https://api.github.com/repos/devknoll/relay-nested-routes/forks","keys_url":"https://api.github.com/repos/devknoll/relay-nested-routes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/devknoll/relay-nested-routes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/devknoll/relay-nested-routes/teams","hooks_url":"https://api.github.com/repos/devknoll/relay-nested-routes/hooks","issue_events_url":"https://api.github.com/repos/devknoll/relay-nested-routes/issues/events{/number}","events_url":"https://api.github.com/repos/devknoll/relay-nested-routes/events","assignees_url":"https://api.github.com/repos/devknoll/relay-nested-routes/assignees{/user}","branches_url":"https://api.github.com/repos/devknoll/relay-nested-routes/branches{/branch}","tags_url":"https://api.github.com/repos/devknoll/relay-nested-routes/tags","blobs_url":"https://api.github.com/repos/devknoll/relay-nested-routes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/devknoll/relay-nested-routes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/devknoll/relay-nested-routes/git/refs{/sha}","trees_url":"https://api.github.com/repos/devknoll/relay-nested-routes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/devknoll/relay-nested-routes/statuses/{sha}","languages_url":"https://api.github.com/repos/devknoll/relay-nested-routes/languages","stargazers_url":"https://api.github.com/repos/devknoll/relay-nested-routes/stargazers","contributors_url":"https://api.github.com/repos/devknoll/relay-nested-routes/contributors","subscribers_url":"https://api.github.com/repos/devknoll/relay-nested-routes/subscribers","subscription_url":"https://api.github.com/repos/devknoll/relay-nested-routes/subscription","commits_url":"https://api.github.com/repos/devknoll/relay-nested-routes/commits{/sha}","git_commits_url":"https://api.github.com/repos/devknoll/relay-nested-routes/git/commits{/sha}","comments_url":"https://api.github.com/repos/devknoll/relay-nested-routes/comments{/number}","issue_comment_url":"https://api.github.com/repos/devknoll/relay-nested-routes/issues/comments{/number}","contents_url":"https://api.github.com/repos/devknoll/relay-nested-routes/contents/{+path}","compare_url":"https://api.github.com/repos/devknoll/relay-nested-routes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/devknoll/relay-nested-routes/merges","archive_url":"https://api.github.com/repos/devknoll/relay-nested-routes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/devknoll/relay-nested-routes/downloads","issues_url":"https://api.github.com/repos/devknoll/relay-nested-routes/issues{/number}","pulls_url":"https://api.github.com/repos/devknoll/relay-nested-routes/pulls{/number}","milestones_url":"https://api.github.com/repos/devknoll/relay-nested-routes/milestones{/number}","notifications_url":"https://api.github.com/repos/devknoll/relay-nested-routes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/devknoll/relay-nested-routes/labels{/name}","releases_url":"https://api.github.com/repos/devknoll/relay-nested-routes/releases{/id}","created_at":"2015-08-18T03:07:05Z","updated_at":"2015-08-20T11:33:53Z","pushed_at":"2015-08-20T06:02:43Z","git_url":"git://github.com/devknoll/relay-nested-routes.git","ssh_url":"git@github.com:devknoll/relay-nested-routes.git","clone_url":"https://github.com/devknoll/relay-nested-routes.git","svn_url":"https://github.com/devknoll/relay-nested-routes","homepage":"","size":0,"stargazers_count":35,"watchers_count":35,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":35,"default_branch":"master"}},"base":{"label":"devknoll:master","ref":"master","sha":"2ebfd9c38ff9ee232f886c554156ca88d9d3961d","user":{"login":"devknoll","id":1477230,"avatar_url":"https://avatars.githubusercontent.com/u/1477230?v=3","gravatar_id":"","url":"https://api.github.com/users/devknoll","html_url":"https://github.com/devknoll","followers_url":"https://api.github.com/users/devknoll/followers","following_url":"https://api.github.com/users/devknoll/following{/other_user}","gists_url":"https://api.github.com/users/devknoll/gists{/gist_id}","starred_url":"https://api.github.com/users/devknoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devknoll/subscriptions","organizations_url":"https://api.github.com/users/devknoll/orgs","repos_url":"https://api.github.com/users/devknoll/repos","events_url":"https://api.github.com/users/devknoll/events{/privacy}","received_events_url":"https://api.github.com/users/devknoll/received_events","type":"User","site_admin":false},"repo":{"id":40947810,"name":"relay-nested-routes","full_name":"devknoll/relay-nested-routes","owner":{"login":"devknoll","id":1477230,"avatar_url":"https://avatars.githubusercontent.com/u/1477230?v=3","gravatar_id":"","url":"https://api.github.com/users/devknoll","html_url":"https://github.com/devknoll","followers_url":"https://api.github.com/users/devknoll/followers","following_url":"https://api.github.com/users/devknoll/following{/other_user}","gists_url":"https://api.github.com/users/devknoll/gists{/gist_id}","starred_url":"https://api.github.com/users/devknoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devknoll/subscriptions","organizations_url":"https://api.github.com/users/devknoll/orgs","repos_url":"https://api.github.com/users/devknoll/repos","events_url":"https://api.github.com/users/devknoll/events{/privacy}","received_events_url":"https://api.github.com/users/devknoll/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/devknoll/relay-nested-routes","description":"Nested react-router routes for Relay","fork":false,"url":"https://api.github.com/repos/devknoll/relay-nested-routes","forks_url":"https://api.github.com/repos/devknoll/relay-nested-routes/forks","keys_url":"https://api.github.com/repos/devknoll/relay-nested-routes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/devknoll/relay-nested-routes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/devknoll/relay-nested-routes/teams","hooks_url":"https://api.github.com/repos/devknoll/relay-nested-routes/hooks","issue_events_url":"https://api.github.com/repos/devknoll/relay-nested-routes/issues/events{/number}","events_url":"https://api.github.com/repos/devknoll/relay-nested-routes/events","assignees_url":"https://api.github.com/repos/devknoll/relay-nested-routes/assignees{/user}","branches_url":"https://api.github.com/repos/devknoll/relay-nested-routes/branches{/branch}","tags_url":"https://api.github.com/repos/devknoll/relay-nested-routes/tags","blobs_url":"https://api.github.com/repos/devknoll/relay-nested-routes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/devknoll/relay-nested-routes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/devknoll/relay-nested-routes/git/refs{/sha}","trees_url":"https://api.github.com/repos/devknoll/relay-nested-routes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/devknoll/relay-nested-routes/statuses/{sha}","languages_url":"https://api.github.com/repos/devknoll/relay-nested-routes/languages","stargazers_url":"https://api.github.com/repos/devknoll/relay-nested-routes/stargazers","contributors_url":"https://api.github.com/repos/devknoll/relay-nested-routes/contributors","subscribers_url":"https://api.github.com/repos/devknoll/relay-nested-routes/subscribers","subscription_url":"https://api.github.com/repos/devknoll/relay-nested-routes/subscription","commits_url":"https://api.github.com/repos/devknoll/relay-nested-routes/commits{/sha}","git_commits_url":"https://api.github.com/repos/devknoll/relay-nested-routes/git/commits{/sha}","comments_url":"https://api.github.com/repos/devknoll/relay-nested-routes/comments{/number}","issue_comment_url":"https://api.github.com/repos/devknoll/relay-nested-routes/issues/comments{/number}","contents_url":"https://api.github.com/repos/devknoll/relay-nested-routes/contents/{+path}","compare_url":"https://api.github.com/repos/devknoll/relay-nested-routes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/devknoll/relay-nested-routes/merges","archive_url":"https://api.github.com/repos/devknoll/relay-nested-routes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/devknoll/relay-nested-routes/downloads","issues_url":"https://api.github.com/repos/devknoll/relay-nested-routes/issues{/number}","pulls_url":"https://api.github.com/repos/devknoll/relay-nested-routes/pulls{/number}","milestones_url":"https://api.github.com/repos/devknoll/relay-nested-routes/milestones{/number}","notifications_url":"https://api.github.com/repos/devknoll/relay-nested-routes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/devknoll/relay-nested-routes/labels{/name}","releases_url":"https://api.github.com/repos/devknoll/relay-nested-routes/releases{/id}","created_at":"2015-08-18T03:07:05Z","updated_at":"2015-08-20T11:33:53Z","pushed_at":"2015-08-20T06:02:43Z","git_url":"git://github.com/devknoll/relay-nested-routes.git","ssh_url":"git@github.com:devknoll/relay-nested-routes.git","clone_url":"https://github.com/devknoll/relay-nested-routes.git","svn_url":"https://github.com/devknoll/relay-nested-routes","homepage":"","size":0,"stargazers_count":35,"watchers_count":35,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":35,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/devknoll/relay-nested-routes/pulls/10"},"html":{"href":"https://github.com/devknoll/relay-nested-routes/pull/10"},"issue":{"href":"https://api.github.com/repos/devknoll/relay-nested-routes/issues/10"},"comments":{"href":"https://api.github.com/repos/devknoll/relay-nested-routes/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/devknoll/relay-nested-routes/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/devknoll/relay-nested-routes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/devknoll/relay-nested-routes/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/devknoll/relay-nested-routes/statuses/07a53a12dd935fd16f94607f83f29fcd176e864b"}}}}