Disables batching for i18n query (#3181)
* Disables batching for i18n query * Makes i18n batch skip explicit
This commit is contained in:
1 parent
ef36a93a55
commit
df3e3e8237
4 files changed
+16
-5
No files matched your search
@@ -6,6 +6,11 @@ import { trpc } from "@lib/trpc";
|
||||
export function useViewerI18n() {
|
||||
return trpc.useQuery(["viewer.public.i18n"], {
|
||||
staleTime: Infinity,
|
||||
/**
|
||||
* i18n should never be clubbed with other queries, so that it's caching can be managed independently.
|
||||
* We intend to not cache i18n query
|
||||
**/
|
||||
context: { skipBatch: true },
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user