fix (Calendar Widget): Add superjson serialization to query cache persister (#6172)
This commit is contained in:
1 parent
2c2bdb6b76
commit
b663dae409
1 file changed
+3
@@ -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),
|
||||
});
|
||||
Reference in new issue
Block a user