This is linked to https://github.com/styled-components/styled-components/issues/1624#issuecomment-425391640 To avoid memory leaks, we need to manually call sheep.seal during SSR, if any error has been thrown during rendering. Here is an example : ``` const sheet = new ServerStyleSheet(); try { const page = await renderPage((App) => (props) => sheet.collectStyles(<App {...props} />)); const styleTags = sheet.getStyleElement(); return { assets, data, ...page, styleTags, }; } finally { sheet.seal(); } } ```