Deduping is broken, but is being batched
Hi all,
We're using TRPC for our React Native app, while doing some testing, I saw in my server logs that the requests don't seem to be deduplicated on the client side, but are batched to the server.
Here you can see that these requests are being made twice, this is for one active client, not sure why this is or if this is due potentially React Query.
Versions being used: 10.37.1 for client / server
React Query: ^4.32.6
What could this possibly be? Here's our TRPC Provider (combined some of the files):
1 Reply
Don't know the exact cause, but we managed to remove the custom trpcQueryCache and use the built-in one which might have fixed the problem, we used it to evict the cache after logout but are now using useQueryClient() + queryClient.clear() instead.