T3 and App Directory

Hello there, guys! I just wanted to see if the T3 app stack properly works with the app directory. Please let me know. Thank you very much!
13 Replies
oof2win2
oof2win22y ago
it doesnt
oof2win2
oof2win22y ago
GitHub
feat: experimental appDir option and migration guide · Issue #1364 ...
Is your feature request related to a problem? Please describe. New features from Next.js 13 do not work with t3 app Describe the solution you'd like to see Create t3 app with appDir structure, ...
oof2win2
oof2win22y ago
at least not yet waiting for upstream support of trpc for appdir and for their example to be out of experimental, possibly next-auth as well
Grey
Grey2y ago
it does as I have done it's setup manually....... but you don't get to leverage server components anymore. (on a granular level at least) as instead of trpc next, you use createTRPCReact
oof2win2
oof2win22y ago
well you can set it up manually from the example that the trpc team already has
Grey
Grey2y ago
mmhmm
oof2win2
oof2win22y ago
personally had issues with caching tho not cache invalidation (which they dont have yet) but caching of the values themselves
Grey
Grey2y ago
that does seem to occur sometimes, but there might be workarounds for that as well I now would only use trpc IF I am making a dynamic web application with constantly updating data on the page. Otherwise, simple server component fetch sufficies ( as I am now working with gql, I don't really need to setup api routes for everything anymore )
cje
cje2y ago
if you "just" want trpc in an app dir client island, that's pretty easy to do already. basically just follow the tRPC setup for a normal non-Next.js react app. i think some people have also made example repos of this. the trpc team is working on some more fancy stuff like being able to call the same procedure from both a server actions and hooks, good invalidation for this, etc
Grey
Grey2y ago
that'd be nice
laurent6355
laurent63552y ago
great
laurent6355
laurent63552y ago
Jack Herrington
YouTube
Are React Server Components Really Slower?
Wait, hold up, React Server Components (RSCs) are actually slower in NextJS than the getServerSideProps/Pages model? Are you kidding me? Turns out, I'm not. Check out the results for yourself! 👉Code: https://github.com/jherr/pages-app-router-perf-test 👉 I'm a host on the React Round-Up podcast: https://devchat.tv/podcasts/react-round-up 👉 Don'...
Want results from more Discord servers?
Add your server