tRPCttRPC
Powered by
VectorzV
tRPC•2y ago•
1 reply
Vectorz

How to use `getQueryKey` from the server side?

Hi guys, i cannot figure out how to use
getQueryKey
getQueryKey
from the server side. Is this possible?

The use case is i want to be able to set the query data from an RSC (server side) to arbitrary data. The SSRHelper
.prefetch()
.prefetch()
function does not satisfy my needs, as i would like to set the query data to an arbitrary value from a query executed in the RSC code.

Any help would be hugely appreciated!
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

getQueryKey on server component
Answer OverflowAAnswer Overflow / ❓-help
3y ago
how to refresh a request made on server from client side?
Adam BorygoAAdam Borygo / ❓-help
8mo ago