{"action":"created","issue":{"url":"https://api.github.com/repos/rackt/react-router/issues/1386","labels_url":"https://api.github.com/repos/rackt/react-router/issues/1386/labels{/name}","comments_url":"https://api.github.com/repos/rackt/react-router/issues/1386/comments","events_url":"https://api.github.com/repos/rackt/react-router/issues/1386/events","html_url":"https://github.com/rackt/react-router/issues/1386","id":90228773,"number":1386,"title":"Router.run vs Router.match - what is a difference?","user":{"login":"alekbarszczewski","id":2742373,"avatar_url":"https://avatars.githubusercontent.com/u/2742373?v=3","gravatar_id":"","url":"https://api.github.com/users/alekbarszczewski","html_url":"https://github.com/alekbarszczewski","followers_url":"https://api.github.com/users/alekbarszczewski/followers","following_url":"https://api.github.com/users/alekbarszczewski/following{/other_user}","gists_url":"https://api.github.com/users/alekbarszczewski/gists{/gist_id}","starred_url":"https://api.github.com/users/alekbarszczewski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alekbarszczewski/subscriptions","organizations_url":"https://api.github.com/users/alekbarszczewski/orgs","repos_url":"https://api.github.com/users/alekbarszczewski/repos","events_url":"https://api.github.com/users/alekbarszczewski/events{/privacy}","received_events_url":"https://api.github.com/users/alekbarszczewski/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-22T22:24:17Z","updated_at":"2015-06-26T07:33:21Z","closed_at":"2015-06-26T07:33:21Z","body":"In `1.0.0-beta2` documentation I found two examples:\r\n\r\n```javascript\r\n...\r\nvar location = new Location(req.path, req.query)\r\nRouter.run(routes, location, (error, initialState, transition) => {\r\n    var html = React.renderToString(<Router history={history} {...initialState}/>)\r\n})\r\n```\r\n\r\n```javascript\r\n...\r\nvar history = new ServerHistory(req.path)\r\nRouter.match(routes, history, (err, initialState) => {\r\n  React.renderToString(<Router children={routes} history={history} {...initialState}/>);\r\n})\r\n```\r\n\r\nOne is using `Location` and `Router.run`, the other is using `ServerHistory` and `Router.match`. Which of those approaches is \"valid\"? What are differences? Maybe this is only a mess in docs?"},"comment":{"url":"https://api.github.com/repos/rackt/react-router/issues/comments/115561729","html_url":"https://github.com/rackt/react-router/issues/1386#issuecomment-115561729","issue_url":"https://api.github.com/repos/rackt/react-router/issues/1386","id":115561729,"user":{"login":"mjackson","id":92839,"avatar_url":"https://avatars.githubusercontent.com/u/92839?v=3","gravatar_id":"","url":"https://api.github.com/users/mjackson","html_url":"https://github.com/mjackson","followers_url":"https://api.github.com/users/mjackson/followers","following_url":"https://api.github.com/users/mjackson/following{/other_user}","gists_url":"https://api.github.com/users/mjackson/gists{/gist_id}","starred_url":"https://api.github.com/users/mjackson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjackson/subscriptions","organizations_url":"https://api.github.com/users/mjackson/orgs","repos_url":"https://api.github.com/users/mjackson/repos","events_url":"https://api.github.com/users/mjackson/events{/privacy}","received_events_url":"https://api.github.com/users/mjackson/received_events","type":"User","site_admin":false},"created_at":"2015-06-26T07:33:21Z","updated_at":"2015-06-26T07:33:21Z","body":"`Router.match` is not a thing in beta2. Use `Router.run`. This has already been updated in master."}}