T
tRPC
Change Theme
Search Answer Overflow
Login
.traevelliath
Posts
Comments
T
tRPC
•
Created by Thimo_o on 8/26/2023 in
#❓-help
How do I setup App router + TRPC + Lucia Auth? (protected routes)
Why? Look how protected procedures were implemented by Theo, for example, in his Chirp guide. And do the same.
7 replies
T
tRPC
•
Created by Thimo_o on 8/26/2023 in
#❓-help
How do I setup App router + TRPC + Lucia Auth? (protected routes)
https://www.youtube.com/watch?v=qCLV0Iaq9zU&t=0s
7 replies
T
tRPC
•
Created by toadmilk on 7/4/2023 in
#❓-help
problem with useContext (likely easy fix)
It's actually pretty simple to fix: just move trpcUtils declaration outside of a function. You should probalby get the desired data inside a component and pass it as a prop.
3 replies
T
tRPC
•
Created by schlabach on 6/23/2023 in
#❓-help
Prefetch on useContext() is not being picked up by react-query.
Maybe this will be of help.
https://tkdodo.eu/blog/seeding-the-query-cache
6 replies
T
tRPC
•
Created by schlabach on 6/23/2023 in
#❓-help
Prefetch on useContext() is not being picked up by react-query.
Isn’t the point of prefetch to be called inside getServerSideProps? Then you can get the data from the client by using getData().
6 replies