State management with React Context, TypeScript, and GraphQL