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
Stop Storing Third-Party Tokens in Your Database Icon
Stop Storing Third-Party Tokens in Your Database

Auth0 Token Vault handles secure token storage, exchange, and refresh for external providers so you don't have to build it yourself.

Rolling your own OAuth token storage can be a security liability. Token Vault securely stores access and refresh tokens from federated providers and handles exchange and renewal automatically. Connected accounts, refresh exchange, and privileged worker flows included.
Try Auth0 for 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