Theo's Typesafe CultTTC
Theo's Typesafe Cult2y ago
3 replies
Wiznet

Do TRPC fetches need to be wrapped in react.useeffect?

I'm curious on how the use of TRPC api calls works with client and server components. Does TRPC handling the caching of results or do we need to still wrap our calls in a react use effect to prevent unnecessary calls? thank you!
Was this page helpful?