fix(monitor): isolate batch search scope
This commit is contained in:
@@ -4,8 +4,8 @@ export const QUERY_MEMORY = {
|
||||
summaryGcTime: 60_000
|
||||
} as const;
|
||||
|
||||
export function retainPreviousPageWithinScope<T>(scope: string) {
|
||||
return (previous: T | undefined, previousQuery?: { queryKey: readonly unknown[] }) => previousQuery?.queryKey[1] === scope ? previous : undefined;
|
||||
export function retainPreviousPageWithinScope<T>(scope: string, scopeIndex = 1) {
|
||||
return (previous: T | undefined, previousQuery?: { queryKey: readonly unknown[] }) => previousQuery?.queryKey[scopeIndex] === scope ? previous : undefined;
|
||||
}
|
||||
|
||||
export function queryScopeKey(query: object) {
|
||||
|
||||
Reference in New Issue
Block a user