Skip to content

Commit

Permalink
fix(nextjs): add displayName to CustomDocument component when using s…
Browse files Browse the repository at this point in the history
…tyled-components
  • Loading branch information
jaysoo authored and Jack Hsu committed Aug 31, 2021
1 parent 0a6434d commit 7deb524
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -6,6 +6,7 @@ export default class CustomDocument extends Document<{ styleTags: ReactElement[]
static getInitialProps({ renderPage }) {
const sheet = new ServerStyleSheet();

// eslint-disable-next-line react/display-name
const page = renderPage(App => props =>
sheet.collectStyles(<App {...props} />)
);
Expand Down

0 comments on commit 7deb524

Please sign in to comment.