fix: cache invalidation issue

This commit is contained in:
Fredrik Burmester
2024-12-01 10:11:24 +01:00
parent 3a507b6d1b
commit 383062ac0d
6 changed files with 11 additions and 11 deletions

View File

@@ -572,11 +572,10 @@ function useDownloadProvider() {
export function DownloadProvider({ children }: { children: React.ReactNode }) {
const downloadProviderValue = useDownloadProvider();
const queryClient = new QueryClient();
return (
<DownloadContext.Provider value={downloadProviderValue}>
<QueryClientProvider client={queryClient}>{children}</QueryClientProvider>
{children}
</DownloadContext.Provider>
);
}