📄️ Client Context
Let's reconsider our example function from the introduction (src/services/greet-me.ts).
📄️ Service Function React Hooks
Magellan provides two React hooks for calling service functions: useQueryService for reading data and useMutationService for modifying data. These hooks are built on TanStack Query v5 and provide automatic caching, error handling, and type-safe state management.