fix: gc time for long-lived queries (#32793)
(cherry picked from commit 079568691580605e92c5d3c3c9037cfbd657f374)
This commit is contained in:
@@ -12,6 +12,7 @@ export const getAdminConfigQuery = () =>
|
||||
queryOptions({
|
||||
queryKey: ['config', 'admin'],
|
||||
queryFn: ({ signal }) => getAdminConfig({ signal }),
|
||||
gcTime: Infinity,
|
||||
});
|
||||
|
||||
export const getAdminConfigDefaultsQuery = () =>
|
||||
|
||||
@@ -5,4 +5,5 @@ export const getPublicConfigQuery = () =>
|
||||
queryOptions({
|
||||
queryKey: ['config', 'public'],
|
||||
queryFn: ({ signal }) => getPublicConfig({ signal }),
|
||||
gcTime: Infinity,
|
||||
});
|
||||
|
||||
@@ -23,5 +23,6 @@ export const getUserConfigQuery = () =>
|
||||
queryOptions({
|
||||
queryKey: ['config', 'user'],
|
||||
queryFn: ({ signal }) => getUserConfig({ signal }),
|
||||
gcTime: Infinity,
|
||||
select: withEffectiveFlags,
|
||||
});
|
||||
|
||||
@@ -23,6 +23,7 @@ export const getServerConfigQuery = () =>
|
||||
queryOptions({
|
||||
queryKey: ['server', 'config'],
|
||||
queryFn: ({ signal }) => getServerConfig({ signal }),
|
||||
gcTime: Infinity,
|
||||
});
|
||||
|
||||
export const getServerStatisticsQuery = () =>
|
||||
|
||||
Reference in New Issue
Block a user