TanStack Query fundamentals in code
const ticketsQuery = useQuery({
queryKey: ["tickets", { status }],
queryFn: () => ticketsApi.list({ status }),
});Read the example from data and control flow to the resulting UI. Keep the component boundary small.