(queryKey: readonly unknown[], data: T)
| 544 | * Write cached data (optimistic updates). |
| 545 | */ |
| 546 | export function setActivityQueryData<T>(queryKey: readonly unknown[], data: T): void { |
| 547 | const key = serializeQueryKey(queryKey) |
| 548 | setCacheEntry(key, { |
| 549 | data, |
| 550 | dataUpdatedAt: Date.now(), |
| 551 | error: null, |
| 552 | errorUpdatedAt: null, |
| 553 | }) |
| 554 | } |
| 555 | |
| 556 | export function useInvalidateActivityQuery() { |
| 557 | return useCallback((queryKey: readonly unknown[]) => { |
no test coverage detected