kamama
Explore posts from serversDTDrizzle Team
•Created by kamama on 10/14/2023 in #help
one to many same table diff column
is there any possible solution to infer the relation in usersRelations?
1 replies
trpc subscription with react-query
TRPCClientError: Subscriptions should use wsLink
having error when use subscription with react-query
import { createTRPCReact } from "@trpc/react-query";
export const trpc = createTRPCReact<AppRouter>();
const wsClient = createWSClient({
url:
ws://localhost:8080/ws
,
});
const trpcClient = trpc.createClient({
transformer: SuperJSON,
links: [
httpLink({
url: /trpc
,
}),
wsLink({
client: wsClient,
}),
],
});
<trpc.Provider client={trpcClient} queryClient={queryClient}>
<QueryClientProvider client={queryClient}>
</QueryClientProvider>
</trpc.Provider>3 replies