T
tRPC

❓-help

Stop initial refetch when prefetched with SSG helpers

PPruxis11/3/2023
Anyone else struggling with this, I want to maintain refetching when the tab is refocused but don't want to "double" fetch on the initial page render. const helpers = createProxySSGHelpers({ router: appRouter, }); helpers.something.something.prefetch({}) Results into double queries when doing api.something.something.useQuery({}) afterwards in your frontend

Looking for more? Join the community!