Minimal hooks-first GraphQL client. First-class hooks API, tiny bundle: only 7.6kB (2.8 gzipped), full SSR support: see graphql-hooks-ssr. Plugin Caching: see graphql-hooks-memcache, no more render props hell, handle loading and error states with ease. A custom implementation can also be provided instead of polyfilling. The first thing you may ask when seeing graphql-hooks is "Why not use Apollo hooks?". It's the comparison most will make. In fact, there's an article comparing the two over on LogRocket. We believe graphql-hooks is a great choice as a hooks-first GraphQL client due to its concise API and package size. In terms of performance, this is more of a grey area as we have no official benchmarks yet. If you need a client that offers more customization such as advanced cache configuration, then apollo-hooks may work out to be a good choice for your project if bundle size is not an issue.

Features

  • First-class hooks API
  • Tiny bundle: only 7.6kB (2.8 gzipped)
  • Full SSR support
  • Plugin Caching
  • No more render props hell
  • Handle loading and error states with ease

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow graphql-hooks

graphql-hooks Web Site

Other Useful Business Software
Build Agents and Models on One Platform Icon
Build Agents and Models on One Platform

Everything you need to build production-ready agents and models. Access 200+ Google and third-party AI models and tools.

Gemini Enterprise Agent Platform is Google Cloud's comprehensive platform for developers to build, scale, govern, and optimize agents and models. Choose from Google's most advanced models and third-party models like Anthropic's Claude Model Family.
Try It Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of graphql-hooks!

Additional Project Details

Programming Language

TypeScript

Related Categories

TypeScript Software Development Software

Registered

2023-03-02