t
tRPC
t
tRPC
Next 13 - App Directory feature and tRPC
Original message was deleted
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,111
Members
View on Discord
R
Ryan Gillie
•
11/21/22, 4:17 PM
Its
.
.
.
.complicated
R
Ryan Gillie
•
11/21/22, 4:18 PM
You
can
, but the method in the docs is still assuming you use the
pages/
pages/
directory
R
Ryan Gillie
•
11/21/22, 4:19 PM
It
's a little tricker to set up with
app/
app/
, notably
createTRPCNext
createTRPCNext
doesn
't work with app so you
'd have to create your own
"use client;"
"use client;"
provider
, and you won
't be able to set it up with server
-components without a little more jumpthrough
R
Ryan Gillie
•
11/21/22, 4:20 PM
I have a repo here that does both
, but neither of these are the
"official
" way that alex would recommend
, but it will work
R
Ryan Gillie
•
11/21/22, 4:20 PM
https://github.com/rag4214/trpc-next13-rsc
GitHub
GitHub - rag4214/trpc-next13-rsc
Contribute to rag4214
/trpc
-next13
-rsc development by creating an account on GitHub
.
R
Ryan Gillie
•
11/21/22, 4:22 PM
My method is fully compatible with v10
, no extra needed
(other than like
, 3 files
?
) and I
'm currently using it just fine in a personal project
pages/
pages/
"use client;"
"use client;"