Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/missionmatch / frontend/src/tools/recruitmatch/queries.ts |
| Date | Not specified in source |
| Repository | Janady13/missionmatch |
| Revision | 720d47fae476b0d38477ae4401697d372b1ea2bc |
| Branch | feature/opportunity-to-outcome |
| Path or archive member | frontend/src/tools/recruitmatch/queries.ts |
| Original SHA-256 | 493cb3bbbedc1aba8db1e5c368b58b87b77c0b683742b698f774af40d65dd028 |
| Git blob SHA | b2ba2d5229775aab9b8f40976f21afdf9bba8b66 |
| Reading-copy SHA-256 | 493cb3bbbedc1aba8db1e5c368b58b87b77c0b683742b698f774af40d65dd028 |
Every recorded occurrence
These 2 records contain identical original source bytes. Their paths and revisions remain part of the archive.
| Original record | Branch or archive | Revision / identifier | Original location |
|---|---|---|---|
| Janady13/missionmatch / frontend/src/tools/recruitmatch/queries.ts | feature/opportunity-to-outcome | 720d47fae476b0d38477ae4401697d372b1ea2bc | Open original |
| Janady13/missionmatch / frontend/src/tools/recruitmatch/queries.ts | feature/aioe-upgrade | 2178e7298d0e5d9af83afa12402fd587f0ba6ed8 | Open original |
Recovered source transcript
Download complete source text ↓23 lines · 0.8 KB
// Keys are prefixed with the tool name so the four tools never collide in the shared query cache.
import { useQuery } from '@tanstack/react-query'
import { recruitApi } from './api'
export function useRecruitDashboard() {
return useQuery({ queryKey: ['recruitmatch', 'dashboard'], queryFn: recruitApi.dashboard })
}
// retry false on both: these are capability gated, so a role without access should fail fast
// rather than retry a 403 it will never pass.
export function useAlerts() {
return useQuery({ queryKey: ['recruitmatch', 'alerts'], queryFn: recruitApi.alerts, retry: false })
}
export function useRecommendations() {
return useQuery({
queryKey: ['recruitmatch', 'recommendations'],
queryFn: recruitApi.recommendations,
retry: false,
})
}