TanStack Start meets Astro Actions?
So I've been playing around with TanStack Start and really loving it. I've also been looking at Astro Actions and it seems like a pattern like that could work with Start? Like some combination of Server Functions meets tRPC? I'm sure there is plenty to consider, but just wondering if this is possible or something thats on folks' radar.
Would be curious to learn about if there's any progress on this or limitations to making it work. Or like, if this would be a tRPC feature.
3 Replies
sensitive-blueOP•11mo ago
Or tell me why this is a dumb idea 😉
generous-apricot•11mo ago
start's server functions with middleware (soon to come) look quite similar
sensitive-blueOP•11mo ago
I just watched/listened to the Syntax podcast episode and it seems like what Tanner mentions in about getting rid of API routes and just using server functions is pretty much what I was thinking. He mentions that here
I guess that more or less replaces the need for tRPC. Using the server function
url
and some middleware to handle validating input/output schemas is pretty much everything I'd need.
Then if you're able to reuse schemas between TanStack Form and server functions? 🤤