PavidR
PavidR
TtRPC
Created by PavidR on 7/31/2024 in #❓-help
Correct tRPC implementation (NextJS AppDir)
does wonders, for now
55 replies
TtRPC
Created by PavidR on 7/31/2024 in #❓-help
Correct tRPC implementation (NextJS AppDir)
well @Hobbs I opted for prefetching in server components and leveraging useSuspenseQuery hook in client components + HydrateClient
55 replies
TtRPC
Created by PavidR on 7/31/2024 in #❓-help
Correct tRPC implementation (NextJS AppDir)
thanks have a good one
55 replies
TtRPC
Created by PavidR on 7/31/2024 in #❓-help
Correct tRPC implementation (NextJS AppDir)
but its late here in EU, gonna sleep and see this tomorrow !
55 replies
TtRPC
Created by PavidR on 7/31/2024 in #❓-help
Correct tRPC implementation (NextJS AppDir)
Yeah OK thanks, but that doesn't exist for RSC
55 replies
TtRPC
Created by PavidR on 7/31/2024 in #❓-help
Correct tRPC implementation (NextJS AppDir)
is there a way to see the timeline of a RSC ? from call to render, times etc ?
55 replies
TtRPC
Created by PavidR on 7/31/2024 in #❓-help
Correct tRPC implementation (NextJS AppDir)
I mean, maybe the little loading times are normal/OK
55 replies
TtRPC
Created by PavidR on 7/31/2024 in #❓-help
Correct tRPC implementation (NextJS AppDir)
and I don't want to maintain : an API + bunch of server actions that do the same thing
55 replies
TtRPC
Created by PavidR on 7/31/2024 in #❓-help
Correct tRPC implementation (NextJS AppDir)
nah I don't use server actions because I need every part of my API to be usable on a React Native app, later on 👍
55 replies
TtRPC
Created by PavidR on 7/31/2024 in #❓-help
Correct tRPC implementation (NextJS AppDir)
and inside the Question component, I use the tRPC CLIENT stuff, passing initialData from props so when I'm doing mutations etc, I benefit of the ReactQuery stuff, like optimistic UI etc
55 replies
TtRPC
Created by PavidR on 7/31/2024 in #❓-help
Correct tRPC implementation (NextJS AppDir)
and I pass down the initialData to my <Question /> component
55 replies
TtRPC
Created by PavidR on 7/31/2024 in #❓-help
Correct tRPC implementation (NextJS AppDir)
the
app/questions/[id]/page.tsx
app/questions/[id]/page.tsx
is doing the RSC tRPC call
55 replies
TtRPC
Created by PavidR on 7/31/2024 in #❓-help
Correct tRPC implementation (NextJS AppDir)
and the loading happens
55 replies
TtRPC
Created by PavidR on 7/31/2024 in #❓-help
Correct tRPC implementation (NextJS AppDir)
I display a list of questions, when clicking the question I'm redirected to a page where I display the single question
55 replies
TtRPC
Created by PavidR on 7/31/2024 in #❓-help
Correct tRPC implementation (NextJS AppDir)
but its not really documented
55 replies
TtRPC
Created by PavidR on 7/31/2024 in #❓-help
Correct tRPC implementation (NextJS AppDir)
I think yeah, that's what I've to do
55 replies
TtRPC
Created by PavidR on 7/31/2024 in #❓-help
Correct tRPC implementation (NextJS AppDir)
I get the broad picture, but not the fine details
55 replies
TtRPC
Created by PavidR on 7/31/2024 in #❓-help
Correct tRPC implementation (NextJS AppDir)
because I don't understand half of it
55 replies
TtRPC
Created by PavidR on 7/31/2024 in #❓-help
Correct tRPC implementation (NextJS AppDir)
I feel bad to use TRPC
55 replies
TtRPC
Created by PavidR on 7/31/2024 in #❓-help
Correct tRPC implementation (NextJS AppDir)
honestly, 50% of the time
55 replies