Laurens Lavaert
Laurens Lavaert7mo ago

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
No replies yetBe the first to reply to this messageJoin