We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32090ec commit c55d03fCopy full SHA for c55d03f
.changeset/spicy-eels-sleep.md
@@ -0,0 +1,5 @@
1
+---
2
+'docusaurus-theme-redoc': patch
3
4
+
5
+Fix worker.terminate error in SSR
packages/docusaurus-theme-redoc/src/utils/useSpec.ts
@@ -59,9 +59,10 @@ export function useSpec(
59
optionsOverrides,
60
);
61
62
- if (currentStore !== null) {
+ if (currentStore !== null && isBrowser) {
63
currentStore.dispose();
64
}
65
66
currentStore = new AppStore(
67
// eslint-disable-next-line @typescript-eslint/no-explicit-any
68
spec as any,
0 commit comments