Is it possible to see cache hit/skip in the terminal when using Next with tRPC in the t3 template?
There's a feature in Next where you are shown whether your API calls were sent to the server or whether they used the cached data: https://nextjs.org/docs/app/api-reference/config/next-config-js/logging. You usually get a little
{ cache: HIT }
for example next to your API call in the terminal.
However, those docs mention that this only works out of the box with fetch
.
Does anyone know if there's a way to set this up with tRPC?0 Replies