Course lesson
Add GraphQL Query Args with urql's useQuery Hook
We will update the TypeScript types to support passing variables between screens. Pass the story ID and title to the modal screen. Display the story title on the modal title. Use the ID from the screen params to fetch the full story details in the story...
- Duration
- 5 min
- Access
- Included
- Transcript
- Retained from source evidence
We will update the TypeScript types to support passing variables between screens. Pass the story ID and title to the modal screen. Display the story title on the modal title. Use the ID from the screen params to fetch the full story details in the story details modal.
Resources:
- urql
useQueryhook: https://formidable.com/open-source/urql/docs/api/urql/#usequery
Checkpoint: Fetch story details