diff --git a/packages/ui/app/src/api-playground/PlaygroundContext.tsx b/packages/ui/app/src/api-playground/PlaygroundContext.tsx index d58a0b17f4..78b7ffb08b 100644 --- a/packages/ui/app/src/api-playground/PlaygroundContext.tsx +++ b/packages/ui/app/src/api-playground/PlaygroundContext.tsx @@ -50,6 +50,11 @@ export const PLAYGROUND_FORM_STATE_ATOM = atomWithStorage { + const res = await fetch(url); + return res.json(); +}; + export const PlaygroundContextProvider: FC = ({ children }) => { const { isApiPlaygroundEnabled } = useFeatureFlags(); const [apis, setApis] = useAtom(APIS); @@ -58,7 +63,7 @@ export const PlaygroundContextProvider: FC = ({ children }) = const key = urljoin(basePath ?? "", "/api/fern-docs/resolve-api"); - const { data } = useSWR | null>(key); + const { data } = useSWR | null>(key, fetcher); useEffect(() => { if (data != null) { setApis(data); diff --git a/packages/ui/components/src/FernTooltip.tsx b/packages/ui/components/src/FernTooltip.tsx index 4aa5e5d8c1..b6cd0c9ed5 100644 --- a/packages/ui/components/src/FernTooltip.tsx +++ b/packages/ui/components/src/FernTooltip.tsx @@ -4,7 +4,6 @@ import { FC, ReactNode } from "react"; interface FernTooltipProps extends Tooltip.TooltipProps, Omit { content: ReactNode | undefined; - isReady?: boolean; } export const FernTooltip: FC = ({ @@ -15,10 +14,9 @@ export const FernTooltip: FC = ({ onOpenChange, delayDuration, disableHoverableContent, - isReady, ...props }) => { - if (content == null || content === "" || !isReady) { + if (content == null || content === "") { return <>{children}; } return (