TRPC Revalidating serverside queries
Hello, how can i revalidate serverside query data in TRPC?
Common things like
...etc doesnt work.. Is there way to revalidate server requests? :/
1 Reply
trpc only has caching for client requests. If this code is in a server component, you need to do
router.refresh()
to refetch it