{"action":"opened","issue":{"url":"https://api.github.com/repos/kadirahq/flow-router/issues/313","labels_url":"https://api.github.com/repos/kadirahq/flow-router/issues/313/labels{/name}","comments_url":"https://api.github.com/repos/kadirahq/flow-router/issues/313/comments","events_url":"https://api.github.com/repos/kadirahq/flow-router/issues/313/events","html_url":"https://github.com/kadirahq/flow-router/issues/313","id":105153691,"number":313,"title":"flow-router-ssr - Warning on redirect","user":{"login":"ffxsam","id":12532733,"avatar_url":"https://avatars.githubusercontent.com/u/12532733?v=3","gravatar_id":"","url":"https://api.github.com/users/ffxsam","html_url":"https://github.com/ffxsam","followers_url":"https://api.github.com/users/ffxsam/followers","following_url":"https://api.github.com/users/ffxsam/following{/other_user}","gists_url":"https://api.github.com/users/ffxsam/gists{/gist_id}","starred_url":"https://api.github.com/users/ffxsam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ffxsam/subscriptions","organizations_url":"https://api.github.com/users/ffxsam/orgs","repos_url":"https://api.github.com/users/ffxsam/repos","events_url":"https://api.github.com/users/ffxsam/events{/privacy}","received_events_url":"https://api.github.com/users/ffxsam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-07T06:17:22Z","updated_at":"2015-09-07T06:17:22Z","closed_at":null,"body":"I'm getting a warning when I redirect via `triggersEnter`:\r\n\r\n>Warning: React attempted to reuse markup in a container but the checksum was invalid. This generally means that you are using server rendering and the markup generated on the server was not what the client was expecting. React injected new markup to compensate which works but you have lost many of the benefits of server rendering. Instead, figure out why the markup being generated is different on the client or server:\r\n (client) id=\".1923orm3ocg.0\">Something else.&lt;/div\r\n (server) id=\".1923orm3ocg.0\">Home!&lt;/div>&lt;/div>\r\n\r\nHere's the router code:\r\n\r\n```\r\nFlowRouter.route('/', {\r\n  action() {\r\n    ReactLayout.render(Layout, {content: <Home />});\r\n  },\r\n  triggersEnter: [function (context, redirect) {\r\n    redirect('/other');\r\n  }]\r\n});\r\n\r\nFlowRouter.route('/other', {\r\n  action() {\r\n    ReactLayout.render(Layout, {content: <Other />});\r\n  }\r\n});\r\n```\r\n\r\nAnd the components:\r\n\r\n```\r\nLayout = React.createClass({\r\n  displayName: 'Layout',\r\n\r\n  render()\r\n  {\r\n    return (\r\n      <div>\r\n        {this.props.content}\r\n      </div>\r\n    )\r\n  }\r\n});\r\n\r\nHome = React.createClass({\r\n  displayName: 'Home',\r\n\r\n  render() {\r\n    return (\r\n      <div>\r\n        Home!\r\n      </div>\r\n    )\r\n  }\r\n});\r\n\r\nOther = React.createClass({\r\n  displayName: 'Other',\r\n\r\n  render() {\r\n    return (\r\n      <div>\r\n        Something else.\r\n      </div>\r\n    )\r\n  }\r\n});\r\n```"}}