Krishna
Krishna
TtRPC
Created by Haaxor1689 on 12/10/2023 in #❓-help
Report progress of mutation
I don’t think so… it’s in development as per one of the issues in repo
7 replies
TtRPC
Created by Haaxor1689 on 12/10/2023 in #❓-help
Report progress of mutation
Server Sent Events are best for this without the overhead of sockets…
7 replies
TtRPC
Created by Luc on 12/8/2023 in #❓-help
Integrating tRPC with Clerk Authentication in an Existing Next.js "Turborepo" Project
tRPC handles authentication at routes level with a middleware & hence is not married to any specific auth system. You can check an implementation here. Check the isAuthed & isTeziAdmin middlewares here. https://github.com/krishna-404/subs-manager/blob/main/apps/api/src/trpc/index.ts
2 replies
TtRPC
Created by ForkMeDaddy on 12/7/2023 in #❓-help
TRPC, Cookies, fetch
Yes you can add custome headers to tRPC… just search the docs for custom headers…
3 replies
TtRPC
Created by BillyBob on 12/8/2023 in #❓-help
Help understanding how to deploy tRPC in monorepo.
Yes you can deploy the fe & be separately… You can checkout this template for pointers https://github.com/teziapp/node-react-vite-trpc-pwa-turbo-monorepo
2 replies
TtRPC
Created by Luka on 11/29/2023 in #❓-help
React Query client and caller client under one object
I am not sure I understand. This is my setup. How do create a client without using react-query?
import { createTRPCReact } from "@trpc/react-query";

export const trpc = createTRPCReact<AppRouter>({
abortOnUnmount: true,
});
import { createTRPCReact } from "@trpc/react-query";

export const trpc = createTRPCReact<AppRouter>({
abortOnUnmount: true,
});
Thanks 🙂
5 replies
TtRPC
Created by Alex Gomes on 11/30/2023 in #❓-help
onSuccess invalidate
I dont know how invalidate works... but Im pretty sure the assumption is flawed... you can use useQuery & call the refetch property within it on update of posts... better would be to use query-keys within usequery which would trigger a fresh refetch automatically
12 replies
TtRPC
Created by sommeeeR on 11/28/2023 in #❓-help
I want to refetch and set the inital data of an useState
great 👍
6 replies
TtRPC
Created by Alex Gomes on 11/30/2023 in #❓-help
onSuccess invalidate
what posts? will need more context...
12 replies
TtRPC
Created by sommeeeR on 11/28/2023 in #❓-help
I want to refetch and set the inital data of an useState
This looks good what exactly are you find issue with?
6 replies
TtRPC
Created by Luka on 11/29/2023 in #❓-help
React Query client and caller client under one object
I use the createTRPCProxyClient to create a seperate caller. So I use useQuery where needed & caller where I need the async flow...
5 replies
TtRPC
Created by Alex Gomes on 11/30/2023 in #❓-help
onSuccess invalidate
in the input component you are not setting the value property. you need
<input
value={input}
...
/>
<input
value={input}
...
/>
12 replies
TtRPC
Created by <DxD/> on 11/24/2023 in #❓-help
Why my Authorization does not update ?
I think you are storing the token in a cookie... why not pick it from there? If you dont want to store it in a cookie for some reason... store it in localstorage / sessioinstorage.... or store it in a globabl-state like Recoil. here you seem to be using variables to store values... the variables deem to reset on re-mount of the component....
4 replies