{"action":"created","issue":{"url":"https://api.github.com/repos/zeit/next.js/issues/5631","repository_url":"https://api.github.com/repos/zeit/next.js","labels_url":"https://api.github.com/repos/zeit/next.js/issues/5631/labels{/name}","comments_url":"https://api.github.com/repos/zeit/next.js/issues/5631/comments","events_url":"https://api.github.com/repos/zeit/next.js/issues/5631/events","html_url":"https://github.com/zeit/next.js/pull/5631","id":378692482,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5MzM0NjEx","number":5631,"title":"Simplify styled-components example","user":{"login":"timneutkens","id":6324199,"node_id":"MDQ6VXNlcjYzMjQxOTk=","avatar_url":"https://avatars2.githubusercontent.com/u/6324199?v=4","gravatar_id":"","url":"https://api.github.com/users/timneutkens","html_url":"https://github.com/timneutkens","followers_url":"https://api.github.com/users/timneutkens/followers","following_url":"https://api.github.com/users/timneutkens/following{/other_user}","gists_url":"https://api.github.com/users/timneutkens/gists{/gist_id}","starred_url":"https://api.github.com/users/timneutkens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timneutkens/subscriptions","organizations_url":"https://api.github.com/users/timneutkens/orgs","repos_url":"https://api.github.com/users/timneutkens/repos","events_url":"https://api.github.com/users/timneutkens/events{/privacy}","received_events_url":"https://api.github.com/users/timneutkens/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-08T11:34:37Z","updated_at":"2018-11-21T08:02:36Z","closed_at":"2018-11-08T11:43:17Z","author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/zeit/next.js/pulls/5631","html_url":"https://github.com/zeit/next.js/pull/5631","diff_url":"https://github.com/zeit/next.js/pull/5631.diff","patch_url":"https://github.com/zeit/next.js/pull/5631.patch"},"body":"- use `enhanceApp` so that styled-components used in _app.js are server rendered\n- call parent getInitialProps, fixes #5629\n- return `styles`, making the render() method obsolete.\n\ncc @mxstbr @probablyup"},"comment":{"url":"https://api.github.com/repos/zeit/next.js/issues/comments/440571726","html_url":"https://github.com/zeit/next.js/pull/5631#issuecomment-440571726","issue_url":"https://api.github.com/repos/zeit/next.js/issues/5631","id":440571726,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MDU3MTcyNg==","user":{"login":"klujanrosas","id":4474353,"node_id":"MDQ6VXNlcjQ0NzQzNTM=","avatar_url":"https://avatars2.githubusercontent.com/u/4474353?v=4","gravatar_id":"","url":"https://api.github.com/users/klujanrosas","html_url":"https://github.com/klujanrosas","followers_url":"https://api.github.com/users/klujanrosas/followers","following_url":"https://api.github.com/users/klujanrosas/following{/other_user}","gists_url":"https://api.github.com/users/klujanrosas/gists{/gist_id}","starred_url":"https://api.github.com/users/klujanrosas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klujanrosas/subscriptions","organizations_url":"https://api.github.com/users/klujanrosas/orgs","repos_url":"https://api.github.com/users/klujanrosas/repos","events_url":"https://api.github.com/users/klujanrosas/events{/privacy}","received_events_url":"https://api.github.com/users/klujanrosas/received_events","type":"User","site_admin":false},"created_at":"2018-11-21T08:02:36Z","updated_at":"2018-11-21T08:02:36Z","author_association":"CONTRIBUTOR","body":"@sarneeh It was a change introduced here https://github.com/zeit/next.js/pull/4762\r\n\r\nUsage before #4762 was:\r\n```js\r\nrenderPage(Page => Page)\r\n```\r\n\r\nThis applied the `enhancer` to the `Page` component.\r\n\r\nNow, it also takes an options object(although previous behaviour was kept for backwards compatibility):\r\n```js\r\nrenderPage({\r\n  enhanceApp: App => App,\r\n  ehhanceComponent: Component => Component\r\n})\r\n```\r\n\r\n"}}
{"actor":{"display_login":"klujanrosas"}}