Sam!r
TTCTheo's Typesafe Cult
•Created by Mocha on 5/13/2024 in #questions
Next.js API Type Safety without tRPC?
You can try using Tanstack query. I have used it in a project and I wrap the layout with a Provider component. This does not interfere with my server actions and even lets me do client calls with all the tanstack query utilities.
10 replies