diff --git a/app/common/src/queryClient.ts b/app/common/src/queryClient.ts index 4ad6802a177a..140caf24287e 100644 --- a/app/common/src/queryClient.ts +++ b/app/common/src/queryClient.ts @@ -59,7 +59,7 @@ export type QueryClient = vueQuery.QueryClient const DEFAULT_QUERY_STALE_TIME_MS = Infinity const DEFAULT_QUERY_PERSIST_TIME_MS = 30 * 24 * 60 * 60 * 1000 // 30 days -const DEFAULT_BUSTER = 'v1.1' +const DEFAULT_BUSTER = 'v1.2' export interface QueryClientOptions { readonly persisterStorage?: AsyncStorage & { diff --git a/app/gui/src/dashboard/components/MarkdownViewer/MarkdownViewer.tsx b/app/gui/src/dashboard/components/MarkdownViewer/MarkdownViewer.tsx index 1531ff5e6974..db66e404554e 100644 --- a/app/gui/src/dashboard/components/MarkdownViewer/MarkdownViewer.tsx +++ b/app/gui/src/dashboard/components/MarkdownViewer/MarkdownViewer.tsx @@ -30,6 +30,9 @@ export function MarkdownViewer(props: MarkdownViewerProps) { const { data: markdownToHtml } = useSuspenseQuery({ queryKey: ['markdownToHtml', { text, imgUrlResolver, markedInstance }] as const, + meta: { persist: false }, + gcTime: 0, + staleTime: 0, queryFn: ({ queryKey: [, args] }) => args.markedInstance.parse(args.text, { async: true, @@ -38,15 +41,10 @@ export function MarkdownViewer(props: MarkdownViewerProps) { const href = token.href token.raw = href - token.href = await args - .imgUrlResolver(href) - .then((url) => { - return url - }) - .catch((error) => { - logger.error(error) - return null - }) + token.href = await args.imgUrlResolver(href).catch((error) => { + logger.error(error) + return null + }) token.text = getText('arbitraryFetchImageError') } },