Skip to content

correttojs/swr-gql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swr graphql wrapper

This library provides an swr wrapper which allows to run type-safe gql requests. It consists of

  • a Graphql fetcher for direct requests (i.e. on ssr)
  • a react hook wrapping swr

Both the hook and the fetcher accept a TypedDocumentNode generated by gql codegen