kapitanluffy
kapitanluffy
TtRPC
Created by daniel_montilla on 8/15/2024 in #❓-help
How to build the raw http request for trpc route?
You probably need to read the docs to understand it under the hood, or you can build a simple poc for calling in the frontend and look in your networks tab in your dev tools.
3 replies
TtRPC
Created by Poonda on 8/11/2024 in #❓-help
Forward NextJs Request to TRPC Server
@Poonda curious, why not talk to the trpc server directly? react-native <-> trpc next.js <-> trpc
10 replies
TtRPC
Created by filyys on 8/1/2024 in #❓-help
tRPC & Next.js confused about error
For context, trpc does not officially support Nextjs App router. Instead of wrapping your component in trpc's HoC, you can create a client component provider and wrap your app with it. Look here https://github.com/trpc/trpc/issues/3297#issuecomment-1423905894
12 replies
TtRPC
Created by filyys on 8/1/2024 in #❓-help
tRPC & Next.js confused about error
How about in layout.tsx? Are you using trpc? Have you checked if removing the trpc provider removes the error?
12 replies
TtRPC
Created by filyys on 8/1/2024 in #❓-help
tRPC & Next.js confused about error
server components are compiled server side, so adding a hook on that will throw an error
12 replies
TtRPC
Created by filyys on 8/1/2024 in #❓-help
tRPC & Next.js confused about error
adding a side effect (such as hooks) is interactivity
12 replies
TtRPC
Created by filyys on 8/1/2024 in #❓-help
tRPC & Next.js confused about error
try to read about server components. for context, all components under app/ are server components, adding interactivity such as useState requires it to be a client component. that is why it says you need to add a "use client" at the top of your component file
12 replies
TtRPC
Created by kapitanluffy on 8/1/2024 in #❓-help
CORS Preflight did not succeed
No description
6 replies
TtRPC
Created by kapitanluffy on 8/1/2024 in #❓-help
CORS Preflight did not succeed
No description
6 replies
TtRPC
Created by kapitanluffy on 8/1/2024 in #❓-help
CORS Preflight did not succeed
Using a manual fetch works too
6 replies