Jan HenningJ
tRPC3y ago
3 replies
Jan Henning

`refetchOnWindowFocus` with RSC?

Hi.

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

Perhaps I can use 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"
Was this page helpful?