Concept Flow - useQuery hook
Component Renders
useQuery Hook Called
Send GraphQL Query Request
Wait for Response
Loading State True
Display Loading
Response Received
Update Data & Loading State
Component Re-renders with Data
The useQuery hook runs a GraphQL query when the component renders, manages loading state, and updates the component with the fetched data.