diff --git a/apps/nextjs/src/app/[locale]/_client-providers/query-cache-persister.ts b/apps/nextjs/src/app/[locale]/_client-providers/query-cache-persister.ts index 1b9a011aa..3af24c508 100644 --- a/apps/nextjs/src/app/[locale]/_client-providers/query-cache-persister.ts +++ b/apps/nextjs/src/app/[locale]/_client-providers/query-cache-persister.ts @@ -1,4 +1,5 @@ import { createAsyncStoragePersister } from "@tanstack/query-async-storage-persister"; +import superjson from "superjson"; import { fetchApi } from "@homarr/api/client"; import { getActiveQueryCacheBoardId, queryCacheStoragePrefix } from "@homarr/api/query-cache"; @@ -26,4 +27,6 @@ export const createWidgetQueryPersister = () => storage: typeof window === "undefined" ? undefined : queryCacheStorage, key: queryCacheStoragePrefix, throttleTime: 2000, + serialize: (data) => superjson.stringify(data), + deserialize: (data) => superjson.parse(data), });