{"action":"created","issue":{"url":"https://api.github.com/repos/FormidableLabs/radium/issues/496","labels_url":"https://api.github.com/repos/FormidableLabs/radium/issues/496/labels{/name}","comments_url":"https://api.github.com/repos/FormidableLabs/radium/issues/496/comments","events_url":"https://api.github.com/repos/FormidableLabs/radium/issues/496/events","html_url":"https://github.com/FormidableLabs/radium/issues/496","id":125296734,"number":496,"title":"Issue configuring Radium on a server side rendering App","user":{"login":"Dindaleon","id":7036726,"avatar_url":"https://avatars.githubusercontent.com/u/7036726?v=3","gravatar_id":"","url":"https://api.github.com/users/Dindaleon","html_url":"https://github.com/Dindaleon","followers_url":"https://api.github.com/users/Dindaleon/followers","following_url":"https://api.github.com/users/Dindaleon/following{/other_user}","gists_url":"https://api.github.com/users/Dindaleon/gists{/gist_id}","starred_url":"https://api.github.com/users/Dindaleon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dindaleon/subscriptions","organizations_url":"https://api.github.com/users/Dindaleon/orgs","repos_url":"https://api.github.com/users/Dindaleon/repos","events_url":"https://api.github.com/users/Dindaleon/events{/privacy}","received_events_url":"https://api.github.com/users/Dindaleon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2016-01-07T00:40:01Z","updated_at":"2016-01-10T06:54:27Z","closed_at":null,"body":"I followed the guide for setting Radium up. I wrapped my styled component with the `@Radium` connector and configured the server and client as follows:\r\n\r\nserver:\r\n```javascript\r\n<Provider store={ store } key=\"provider\">\r\n  <IntlProvider\r\n    key={ store.getState().user.data.locale }\r\n    locale={ store.getState().user.data.locale }\r\n    messages={ lang[store.getState().user.data.locale] }>\r\n    <StyleRoot style={{ userAgent: request.headers['user-agent'] }}>\r\n      <ReduxRouter/>\r\n    </StyleRoot>\r\n  </IntlProvider>\r\n</Provider>\r\n```\r\n\r\nclient:\r\n```javascript\r\n ReactDOM.render(\r\n    <Provider store = { store } key=\"provider\">\r\n      <ConnectedIntlProvider>\r\n        <StyleRoot style={{ userAgent: navigator.userAgent }}>\r\n          <ReduxRouter\r\n            children = { getRoutes(store) } />\r\n        </StyleRoot>\r\n      </ConnectedIntlProvider>\r\n    </Provider>,\r\n    root\r\n  );\r\n```\r\n\r\nThese are the errors I am getting:\r\n\r\nOn the server:\r\n```\r\nRadium: userAgent should be supplied for server-side rendering. See https://github.com/FormidableLabs/radium/tree/master/docs/api#radium for more information.\r\nEither the global navigator was undefined or an invalid userAgent was provided. Using a valid userAgent? Please let us know and create an issue at https://github.com/rofrischmann/inline-style-prefixer/issues\r\n```\r\n\r\nOn the client:\r\n```\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=\".1kcxxrwd0jk.$/=10\"><div class=\"md\r\n (server) ctid=\".1kcxxrwd0jk.$=10\"><div class=\"mdl\r\n```"},"comment":{"url":"https://api.github.com/repos/FormidableLabs/radium/issues/comments/170321026","html_url":"https://github.com/FormidableLabs/radium/issues/496#issuecomment-170321026","issue_url":"https://api.github.com/repos/FormidableLabs/radium/issues/496","id":170321026,"user":{"login":"ianobermiller","id":897931,"avatar_url":"https://avatars.githubusercontent.com/u/897931?v=3","gravatar_id":"","url":"https://api.github.com/users/ianobermiller","html_url":"https://github.com/ianobermiller","followers_url":"https://api.github.com/users/ianobermiller/followers","following_url":"https://api.github.com/users/ianobermiller/following{/other_user}","gists_url":"https://api.github.com/users/ianobermiller/gists{/gist_id}","starred_url":"https://api.github.com/users/ianobermiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianobermiller/subscriptions","organizations_url":"https://api.github.com/users/ianobermiller/orgs","repos_url":"https://api.github.com/users/ianobermiller/repos","events_url":"https://api.github.com/users/ianobermiller/events{/privacy}","received_events_url":"https://api.github.com/users/ianobermiller/received_events","type":"User","site_admin":false},"created_at":"2016-01-10T06:54:27Z","updated_at":"2016-01-10T06:54:27Z","body":"Looks like it is something to do with the way React Router renders; if I move `StyleRoot` inside of `App`, the problem disappears."}}