diff --git a/packages/ui/app/src/api-reference/ApiReferenceContent.tsx b/packages/ui/app/src/api-reference/ApiReferenceContent.tsx
index 869472170b..6aea0d02ca 100644
--- a/packages/ui/app/src/api-reference/ApiReferenceContent.tsx
+++ b/packages/ui/app/src/api-reference/ApiReferenceContent.tsx
@@ -104,4 +104,4 @@ const UnmemoizedApiReferenceContent: React.FC<ApiReferenceContentProps> = ({
     );
 };
 
-export const ApiReferenceContent = memo(UnmemoizedApiReferenceContent);
+export const ApiReferenceContent = memo(UnmemoizedApiReferenceContent, (prev, next) => prev.node.id === next.node.id);
diff --git a/packages/ui/app/src/docs/DocsMainContent.tsx b/packages/ui/app/src/docs/DocsMainContent.tsx
index dbaa7f5aba..5ec8b9cabc 100644
--- a/packages/ui/app/src/docs/DocsMainContent.tsx
+++ b/packages/ui/app/src/docs/DocsMainContent.tsx
@@ -4,7 +4,7 @@ import { useSearchParams } from "next/navigation";
 import { Fragment, ReactElement, memo } from "react";
 import { useFeatureFlags, useIsReady } from "../atoms";
 import { FernErrorBoundary } from "../components/FernErrorBoundary";
-import { DocsContent } from "../resolver/DocsContent";
+import type { DocsContent } from "../resolver/DocsContent";
 
 const CustomMarkdownPage = dynamic(
     () => import("./CustomMarkdownPage").then(({ CustomMarkdownPage }) => CustomMarkdownPage),