frontend-data-fetching
Fetch data in Sentry's frontend with TanStack Query and apiOptions. Use when adding or editing React code in static/ that calls the API — useQuery/useMutation/useInfiniteQuery, apiOptions, queryOptions/mutationOptions, fetchMutation, reading response headers/pagination, conditional fetching, or query keys and cache filters (invalidateQueries, setQueriesData, predicates). Trigger on "fetch data", "add an API call", "useQuery", "useMutation", "apiOptions", "queryFn", "queryKey", "invalidateQueries", "pagination headers", "X-Hits", or "why is my query type wrong".
Source facts
getsentry
Repository getsentry/sentry
- Last source activity
- November 20, 2026 at 13:10
- Detected SKILL.md language
- English
- Stars
- 45,876
- Forks
- 4,987
Install options
The review-first prompt is selected by default. You can switch to a direct command or download a local copy.
Review the source files
Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.
Showing SKILL.md
| name | frontend-data-fetching |
|---|---|
| description | Fetch data in Sentry's frontend with TanStack Query and apiOptions. Use when adding or editing React code in static/ that calls the API — useQuery/useMutation/useInfiniteQuery, apiOptions, queryOptions/mutationOptions, fetchMutation, reading response headers/pagination, conditional fetching, or query keys and cache filters (invalidateQueries, setQueriesData, predicates). Trigger on "fetch data", "add an API call", "useQuery", "useMutation", "apiOptions", "queryFn", "queryKey", "invalidateQueries", "pagination headers", "X-Hits", or "why is my query type wrong". |