Add GraphQL Query Args with urql's useQuery Hook

Share this video with your friends

Send Tweet

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 useQuery hook: https://formidable.com/open-source/urql/docs/api/urql/#usequery

Checkpoint: Fetch story details