From b663dae4098c3866a2db5e0fcd7d10d7a7de62eb Mon Sep 17 00:00:00 2001 From: Bergasha Date: Sat, 4 Jul 2026 16:57:49 +1000 Subject: [PATCH] fix (Calendar Widget): Add superjson serialization to query cache persister (#6172) --- .../app/[locale]/_client-providers/query-cache-persister.ts | 3 +++ 1 file changed, 3 insertions(+) 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), });