🎣 Minimal hooks-first GraphQL client
OTHER License
Bot releases are hidden (Show)
Published by Joezo over 5 years ago
Published by Joezo over 5 years ago
https://github.com/nearform/graphql-hooks/compare/[email protected]@1.0.3
Published by Joezo over 5 years ago
Published by Joezo over 5 years ago
https://github.com/nearform/graphql-hooks/compare/[email protected]@3.2.4
Published by Joezo over 5 years ago
https://github.com/nearform/graphql-hooks/compare/[email protected]
Published by bmullan91 over 5 years ago
https://github.com/nearform/graphql-hooks/compare/v3.2.1...v3.2.2
Published by Joezo over 5 years ago
https://github.com/nearform/graphql-hooks/compare/v3.2.0...v3.2.1
Published by Joezo over 5 years ago
https://github.com/nearform/graphql-hooks/compare/v3.1.1...v3.2.0
Published by bmullan91 over 5 years ago
react-hooks-testing-library
Commit comparison https://github.com/nearform/graphql-hooks/compare/v3.1.0...v3.1.1
Published by jackdclark over 5 years ago
Published by Joezo over 5 years ago
loading
is now set to false
on first render when using useMutation
Published by jackdclark over 5 years ago
Published by bmullan91 over 5 years ago
useQuery
useCache=true
for useManualQuery
Published by bmullan91 over 5 years ago
graphql-request
from depsPublished by bmullan91 over 5 years ago
GraphQLClient
Published by bmullan91 over 5 years ago
createClient
-> GraphQLClient
class
endpoint
-> url
fetch
: optional function to specify the fetch implementation | defaults to global fetchnew GraphQLClient(config)
:
logErrors
: Boolean | default true
onError
: Function - custom error handler will receive ({ result, operation }) as the argumentresult
object from all hooks:
fetchError
: if an error occurred during the fetch call it will be available herehttpError
: if a http error occurred it will be available heregraphQLErrors
: The array of GraphQL errors from the server responseerror
: Boolean set to true if any of the above errors have been setcacheHit
: Boolean set to true if the result came from the cache, useful for debuggingoperationName
can now be set:
useQuery(query, { variables: {...}, operationName: 'MyOperation' })
useMutation(mutation, { variables: {...}, operationName: 'MyOperation' })
const [myMutation] = useMutation(mutation); myMutation({ variables: {}, operationName: 'MyOperation' })
Published by bmullan91 over 5 years ago
Published by bmullan91 over 5 years ago
Published by bmullan91 over 5 years ago