TRPC Revalidating serverside queries

Hello, how can i revalidate serverside query data in TRPC? Common things like
const utils = api.useUtils()

utils.card.invalidate()
const utils = api.useUtils()

utils.card.invalidate()
...etc doesnt work.. Is there way to revalidate server requests? :/
No description
1 Reply
Matvey
Matvey7mo ago
trpc only has caching for client requests. If this code is in a server component, you need to do router.refresh() to refetch it
Want results from more Discord servers?
Add your server