aboutsummaryrefslogtreecommitdiffstats
path: root/packages/web/lib
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-02-20 14:05:53 +0000
committerMohamedBassem <me@mbassem.com>2024-02-20 14:05:53 +0000
commit7c04276bacf6e9ecc0cce4a2ece7a25dc8e5deaa (patch)
tree22064a23a42b37e6b42f4c3cc3f1ff5da3fccdb7 /packages/web/lib
parentfb5b114ec4d42668aeb4fa0dce30125f1cac04e7 (diff)
downloadkarakeep-7c04276bacf6e9ecc0cce4a2ece7a25dc8e5deaa.tar.zst
ui: hydrate the react query cache in the client side components
Diffstat (limited to 'packages/web/lib')
-rw-r--r--packages/web/lib/providers.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/web/lib/providers.tsx b/packages/web/lib/providers.tsx
index e81645dd..d14d4d96 100644
--- a/packages/web/lib/providers.tsx
+++ b/packages/web/lib/providers.tsx
@@ -5,6 +5,7 @@ import React, { useState } from "react";
import { api } from "./trpc";
import { loggerLink } from "@trpc/client";
import { httpBatchLink } from "@trpc/client";
+import superjson from "superjson";
export default function Providers({ children }: { children: React.ReactNode }) {
const [queryClient] = React.useState(() => new QueryClient());
@@ -20,6 +21,7 @@ export default function Providers({ children }: { children: React.ReactNode }) {
httpBatchLink({
// TODO: Change this to be a full URL exposed as a client side setting
url: `/api/trpc`,
+ transformer: superjson,
}),
],
}),