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
The AI workplace management platform Icon
The AI workplace management platform

Plan smart spaces, connect teams, manage assets, and get insights with the leading AI-powered operating system for the built world.

By combining AI workflows, predictive intelligence, and automated insights, OfficeSpace gives leaders a complete view of how their spaces are used and how people work. Facilities, IT, HR, and Real Estate teams use OfficeSpace to optimize space utilization, enhance employee experience, and reduce portfolio costs with precision.
Learn More
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