Skip to content

Commit

Permalink
Fix to prevent rehydration of styles (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
JPeer264 authored Mar 3, 2023
1 parent 544b88f commit 42bb731
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/soft-meals-accept.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'docusaurus-theme-redoc': patch
---

Prevent rehydrating of client styles
7 changes: 6 additions & 1 deletion packages/docusaurus-theme-redoc/src/theme/Redoc/Styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,10 @@ export function ServerStyles(_props: {
lightThemeOptions: RedocRawOptions;
darkThemeOptions: RedocRawOptions;
}) {
return <div className="redocusaurus-styles"></div>;
return (
<div
className="redocusaurus-styles"
dangerouslySetInnerHTML={{ __html: '' }}
></div>
);
}

1 comment on commit 42bb731

@vercel
Copy link

@vercel vercel bot commented on 42bb731 Mar 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.