TanStackT
TanStack15mo ago
3 replies
improved-purple

Start - When to use Api routes and server functions

I'm learning tankstack start and i'm not sure about why and when to use API routes, isn't server functions better, since it provides typescript end-to-end support and only executes on the server? Why shouldn't i only use server functions?
Was this page helpful?