fix: use $api.queryOptions for batcher query keys

Replace custom meetingStatusKeys with $api.queryOptions()-derived keys
so cache identity matches the original per-room GET endpoints.
This commit is contained in:
Igor Loskutov
2026-02-05 19:40:13 -05:00
parent 9dc6c20ef8
commit 4339ffffcf
2 changed files with 14 additions and 12 deletions

View File

@@ -14,6 +14,10 @@ jest.mock("../apiClient", () => ({
$api: {
useQuery: jest.fn(),
useMutation: jest.fn(),
queryOptions: (method: string, path: string, init?: unknown) =>
init === undefined
? { queryKey: [method, path] }
: { queryKey: [method, path, init] },
},
API_URL: "http://test",
WEBSOCKET_URL: "ws://test",