diff options
Diffstat (limited to 'packages/web/lib')
| -rw-r--r-- | packages/web/lib/providers.tsx | 2 |
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, }), ], }), |
