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

You Might Also Like
Get Advanced Threat Protection for Your Azure Workloads Icon
Get Advanced Threat Protection for Your Azure Workloads

FortiGate NGFW on Azure Enables You to Protect Your Workloads Beyond Basic Azure Security Services

FortiGate NGFW identifies and stops advanced threats with powerful application control, malware protection, web filtering, antivirus, and IPS technology. As the attack surface expands, FortiGate provides integrated and automated protection against emerging and sophisticated threats while securing hybrid or multi-cloud environments. Deploy today in Azure Marketplace.
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