{"action":"created","issue":{"url":"https://api.github.com/repos/reactjs/react-router/issues/2036","repository_url":"https://api.github.com/repos/reactjs/react-router","labels_url":"https://api.github.com/repos/reactjs/react-router/issues/2036/labels{/name}","comments_url":"https://api.github.com/repos/reactjs/react-router/issues/2036/comments","events_url":"https://api.github.com/repos/reactjs/react-router/issues/2036/events","html_url":"https://github.com/reactjs/react-router/issues/2036","id":107554941,"number":2036,"title":"Server rendering dynamic routes","user":{"login":"Cap32","id":1403911,"avatar_url":"https://avatars.githubusercontent.com/u/1403911?v=3","gravatar_id":"","url":"https://api.github.com/users/Cap32","html_url":"https://github.com/Cap32","followers_url":"https://api.github.com/users/Cap32/followers","following_url":"https://api.github.com/users/Cap32/following{/other_user}","gists_url":"https://api.github.com/users/Cap32/gists{/gist_id}","starred_url":"https://api.github.com/users/Cap32/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cap32/subscriptions","organizations_url":"https://api.github.com/users/Cap32/orgs","repos_url":"https://api.github.com/users/Cap32/repos","events_url":"https://api.github.com/users/Cap32/events{/privacy}","received_events_url":"https://api.github.com/users/Cap32/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/reactjs/react-router/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":73,"created_at":"2015-09-21T16:58:32Z","updated_at":"2016-03-29T12:54:23Z","closed_at":"2015-11-06T23:02:31Z","body":"I use server side rendering with some code splitting routes. It looks like OK on my server side with shim `require.ensure`. But I get the following warning on my client side:\r\n\r\n```javascript\r\nWarning: 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) ctid=\".bqth22sav4\"><noscript data-reacti\r\n (server) ctid=\".bqth22sav4\"><div data-reactid=\r\n```\r\n\r\nHere is the main part of my client side codes:\r\n\r\n```jsx\r\n\r\nconst store = createStore(getInitialState());\r\nconst history = createHistory();\r\nconst { pathname, search } = window.location;\r\nconst location = createLocation(pathname + search);\r\n\r\nmatch({ routes, location }, (err, redirectLocation, renderProps) => {\r\n\trender(\r\n\t\t<Provider store={store}>\r\n\t\t\t<Router\r\n\t\t\t\t{...renderProps}\r\n\t\t\t\thistory={history}\r\n\t\t\t/>\r\n\t\t</Provider>,\r\n\t\tdocument.getElementById('mount')\r\n\t);\r\n});\r\n```\r\n\r\nRegards."},"comment":{"url":"https://api.github.com/repos/reactjs/react-router/issues/comments/202878635","html_url":"https://github.com/reactjs/react-router/issues/2036#issuecomment-202878635","issue_url":"https://api.github.com/repos/reactjs/react-router/issues/2036","id":202878635,"user":{"login":"bstst","id":412859,"avatar_url":"https://avatars.githubusercontent.com/u/412859?v=3","gravatar_id":"","url":"https://api.github.com/users/bstst","html_url":"https://github.com/bstst","followers_url":"https://api.github.com/users/bstst/followers","following_url":"https://api.github.com/users/bstst/following{/other_user}","gists_url":"https://api.github.com/users/bstst/gists{/gist_id}","starred_url":"https://api.github.com/users/bstst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bstst/subscriptions","organizations_url":"https://api.github.com/users/bstst/orgs","repos_url":"https://api.github.com/users/bstst/repos","events_url":"https://api.github.com/users/bstst/events{/privacy}","received_events_url":"https://api.github.com/users/bstst/received_events","type":"User","site_admin":false},"created_at":"2016-03-29T12:54:22Z","updated_at":"2016-03-29T12:54:22Z","body":"I've got the same issue. Webpack ^1.12.14, async route components, server-side rendering."}}