mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user