From 42bb731b7bed4f0aaef7558f1af78a5c080ff0fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Peer=20St=C3=B6cklmair?= Date: Fri, 3 Mar 2023 13:55:12 +0100 Subject: [PATCH] Fix to prevent rehydration of styles (#276) --- .changeset/soft-meals-accept.md | 5 +++++ packages/docusaurus-theme-redoc/src/theme/Redoc/Styles.tsx | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .changeset/soft-meals-accept.md diff --git a/.changeset/soft-meals-accept.md b/.changeset/soft-meals-accept.md new file mode 100644 index 00000000..70e67e5b --- /dev/null +++ b/.changeset/soft-meals-accept.md @@ -0,0 +1,5 @@ +--- +'docusaurus-theme-redoc': patch +--- + +Prevent rehydrating of client styles diff --git a/packages/docusaurus-theme-redoc/src/theme/Redoc/Styles.tsx b/packages/docusaurus-theme-redoc/src/theme/Redoc/Styles.tsx index 7a3bf976..aec4472a 100644 --- a/packages/docusaurus-theme-redoc/src/theme/Redoc/Styles.tsx +++ b/packages/docusaurus-theme-redoc/src/theme/Redoc/Styles.tsx @@ -11,5 +11,10 @@ export function ServerStyles(_props: { lightThemeOptions: RedocRawOptions; darkThemeOptions: RedocRawOptions; }) { - return
; + return ( +
+ ); }