tRPCttRPC
Powered by
Jan HenningJ
tRPC•3y ago•
3 replies
Jan Henning

`refetchOnWindowFocus` with RSC?

Hi.

Is there any way to have
refetchOnWindowFocus
refetchOnWindowFocus
work with server components? Seems like it only available for client side.

Perhaps I can use
revalidatePath()
revalidatePath()
to handle this? Not 100% sure what the best/optimal solution is.

"next": "^13.5.6",
"@trpc/client": "^10.41.0",
"@trpc/next": "^10.41.0",
"@trpc/react-query": "^10.41.0",
"@trpc/server": "^10.41.0"
"next": "^13.5.6",
"@trpc/client": "^10.41.0",
"@trpc/next": "^10.41.0",
"@trpc/react-query": "^10.41.0",
"@trpc/server": "^10.41.0"
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

`createCaller` and RSC - with next-auth
Liltripple_reidLLiltripple_reid / ❓-help
3y ago
Example for tRPC, stable version, with RSC
Michael SchaufelbergerMMichael Schaufelberger / ❓-help
3y ago
How to make prefetching/RSC suspense work with auth?
Michael SchaufelbergerMMichael Schaufelberger / ❓-help
13mo ago
Can't do server side data fetching with RSC.
esanchezvzEesanchezvz / ❓-help
3y ago