We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gatsby/packages/gatsby/index.d.ts
Lines 922 to 930 in d17f19d
Missing bodyComponent declaration in ReplaceRendererArgs interface.
bodyComponent
ReplaceRendererArgs
Example:
/** @type {import('gatsby').GatsbySSR['replaceRenderer']} */ export const replaceRenderer = async ({ bodyComponent, // ??? setHeadComponents, replaceBodyHTMLString }) => { const { ids, css, html } = extractCritical(renderToString(bodyComponent)) setHeadComponents([ <style key="emotion-styles" data-emotion-css={ids.join(' ')} dangerouslySetInnerHTML={{ __html: css }} /> ]) replaceBodyHTMLString(html) }
The text was updated successfully, but these errors were encountered:
Thanks for the report. I've opened a PR to fix it.
Sorry, something went wrong.
ascorbic
Successfully merging a pull request may close this issue.
gatsby/packages/gatsby/index.d.ts
Lines 922 to 930 in d17f19d
Missing
bodyComponent
declaration inReplaceRendererArgs
interface.Example:
The text was updated successfully, but these errors were encountered: