BeBoRE
BeBoRE
TtRPC
Created by Bart ⚡ on 10/14/2024 in #❓-help
Streaming in React Native?
Damn only that one package?
9 replies
TtRPC
Created by Bart ⚡ on 10/14/2024 in #❓-help
Streaming in React Native?
What polyfills are you using?
9 replies
TtRPC
Created by Bart ⚡ on 10/14/2024 in #❓-help
Streaming in React Native?
Could you explain how you got streaming working in React Native?
9 replies
TtRPC
Created by Peform on 8/7/2024 in #❓-help
useQuery `onSuccess` callback depreciated
5 replies
TtRPC
Created by Peform on 8/7/2024 in #❓-help
useQuery `onSuccess` callback depreciated
Read the react query docs about its depreciation
5 replies
TtRPC
Created by Bytes on 7/20/2024 in #❓-help
How do I return a plain text in trpc?
You’d have to experiment
8 replies
TtRPC
Created by Bytes on 7/20/2024 in #❓-help
How do I return a plain text in trpc?
You’d might be able to do it by ending the response yourself with a procedure, but you’d probably end up crashing tRPC
8 replies
TtRPC
Created by Bytes on 7/20/2024 in #❓-help
How do I return a plain text in trpc?
There is no solution in tRPC for that
8 replies
TtRPC
Created by Alan_szt on 7/18/2024 in #❓-help
How can I set a Cookie from the server (for the login)?
// created for each request
const createContext = ({
req,
res,
}: trpcExpress.CreateExpressContextOptions) => ({}); // no context
type Context = Awaited<ReturnType<typeof createContext>>;
const t = initTRPC.context<Context>().create();
// created for each request
const createContext = ({
req,
res,
}: trpcExpress.CreateExpressContextOptions) => ({}); // no context
type Context = Awaited<ReturnType<typeof createContext>>;
const t = initTRPC.context<Context>().create();
4 replies
TtRPC
Created by Alan_szt on 7/18/2024 in #❓-help
How can I set a Cookie from the server (for the login)?
4 replies
TtRPC
Created by Alan_szt on 7/18/2024 in #❓-help
How can I set a Cookie from the server (for the login)?
Your t needs to be passed the typedef of your context
4 replies
TtRPC
Created by Merlin on 2/26/2024 in #❓-help
React type errors because of backend
You good?
7 replies
TtRPC
Created by seven on 7/7/2024 in #❓-help
client server counication with webSockets
You can only listen to subscriptions, but the wsLink does allow for you to call mutations over WebSocket
12 replies
TtRPC
Created by mwinel on 4/30/2024 in #❓-help
Running Websockets/Subscriptions with Fetch / Edge Runtimes Adapter
@Emmytobs you an now do subscriptions over http with SSE using the httpSubscriptionLink
16 replies
TtRPC
Created by PinkiePie on 6/14/2024 in #❓-help
Websocket connects even without any subscriptions
Enable lazy in the ws client settings
6 replies
TtRPC
Created by seven on 7/7/2024 in #❓-help
client server counication with webSockets
The wsLink supports mutations, it should stay open. There is an option for the ws client to be lazy, but I believe that's not enabled by default.
12 replies