fix(site): make AI Bridge sessions query key more specific (#23687)

Seeing what appears to be a react-query caching issue on dogfood. Not
able to repro on my workspace, so this is sort of a shot in the dark 🤷
This commit is contained in:
Jeremy Ruppel
2026-03-26 16:13:02 -04:00
committed by GitHub
parent 58f744a5c1
commit beece6d351
+5 -5
View File
@@ -12,8 +12,8 @@ export const paginatedInterceptions = (
return {
searchParams,
queryPayload: () => searchParams.get(useFilterParamsKey) ?? "",
queryKey: ({ payload, pageNumber }) => {
return ["aiBridgeInterceptions", payload, pageNumber] as const;
queryKey: ({ limit, offset, payload }) => {
return ["aiBridgeInterceptions", limit, offset, payload] as const;
},
queryFn: ({ limit, offset, payload }) =>
API.getAIBridgeInterceptions({
@@ -30,10 +30,10 @@ export const paginatedSessions = (
return {
searchParams,
queryPayload: () => searchParams.get(useFilterParamsKey) ?? "",
queryKey: ({ payload, pageNumber }) => {
return ["aiBridgeSessions", payload, pageNumber] as const;
queryKey: ({ limit, offset, payload }) => {
return ["aiBridgeSessions", limit, offset, payload] as const;
},
queryFn: ({ offset, limit, payload }) =>
queryFn: ({ limit, offset, payload }) =>
API.getAIBridgeSessionList({
offset,
limit,