From 39ba4a1c97a2abf2a09a5e79095979f6c67571d6 Mon Sep 17 00:00:00 2001 From: Athou Date: Fri, 29 Dec 2023 12:11:33 +0100 Subject: [PATCH] disable redoc url sync because it causes issues with hashrouter --- commafeed-client/src/pages/app/ApiDocumentationPage.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/commafeed-client/src/pages/app/ApiDocumentationPage.tsx b/commafeed-client/src/pages/app/ApiDocumentationPage.tsx index cb8291b5..bab0683e 100644 --- a/commafeed-client/src/pages/app/ApiDocumentationPage.tsx +++ b/commafeed-client/src/pages/app/ApiDocumentationPage.tsx @@ -1,5 +1,10 @@ import { Box } from "@mantine/core" -import { RedocStandalone } from "redoc" +import { HistoryService, RedocStandalone } from "redoc" + +// disable redoc url sync because it causes issues with hashrouter +Object.defineProperty(HistoryService.prototype, "replace", { + value: () => {}, +}) function ApiDocumentationPage() { return (