Skip to content

Commit

Permalink
Revert "Fix to prevent rehydration of styles" (#288)
Browse files Browse the repository at this point in the history
* Revert "Fix to prevent rehydration of styles (#276)"

Fixes #287 

This reverts commit 42bb731.
  • Loading branch information
rohit-gohri committed Apr 17, 2023
1 parent 080e56b commit c0fcd04
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/funny-students-doubt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"docusaurus-theme-redoc": patch
---

Revert "Fix to prevent rehydration of styles" to fix mobile view
7 changes: 1 addition & 6 deletions packages/docusaurus-theme-redoc/src/theme/Redoc/Styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,5 @@ export function ServerStyles(_props: {
lightThemeOptions: RedocRawOptions;
darkThemeOptions: RedocRawOptions;
}) {
return (
<div
className="redocusaurus-styles"
dangerouslySetInnerHTML={{ __html: '' }}
></div>
);
return <div className="redocusaurus-styles"></div>;
}

1 comment on commit c0fcd04

@vercel
Copy link

@vercel vercel bot commented on c0fcd04 Apr 17, 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.