Stop initial refetch when prefetched with SSG helpers
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
0 Replies