Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

graphql-react

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-react - npm Package Compare versions

Comparing version 8.0.1 to 8.0.2

7

changelog.md
# graphql-react changelog
## 8.0.2
### Patch
- Updated dev dependencies.
- `useGraphQL` React hook bug fix for when arguments change after the initial render and the `load` function is called: `loading` and `cacheValue` now update correctly after the operation loads.
## 8.0.1

@@ -4,0 +11,0 @@

10

package.json
{
"name": "graphql-react",
"version": "8.0.1",
"version": "8.0.2",
"description": "A lightweight but powerful GraphQL client for React using modern context and hooks APIs; the first Relay and Apollo alternative with server side rendering.",

@@ -68,3 +68,3 @@ "license": "MIT",

"eslint-plugin-react": "^7.12.4",
"eslint-plugin-react-hooks": "^1.0.2",
"eslint-plugin-react-hooks": "^1.2.0",
"formdata-node": "^1.4.1",

@@ -79,5 +79,5 @@ "graphql": "^14.1.1",

"prettier": "^1.16.4",
"react": "^16.8.2",
"react-dom": "^16.8.2",
"react-test-renderer": "^16.8.2",
"react": "^16.8.3",
"react-dom": "^16.8.3",
"react-test-renderer": "^16.8.3",
"size-limit": "^0.21.1",

@@ -84,0 +84,0 @@ "tap": "^12.5.3"

@@ -100,16 +100,13 @@ 'use strict'

_react.default.useEffect(function() {
graphql.on('fetch', onFetch)
graphql.on('cache', onCache)
graphql.on('reset', onReset)
return function() {
graphql.off('fetch', onFetch)
graphql.off('cache', onCache)
graphql.off('reset', onReset)
}
}, [])
_react.default.useEffect(
function() {
graphql.on('fetch', onFetch)
graphql.on('cache', onCache)
graphql.on('reset', onReset)
if (loadOnMount) load()
return function() {
graphql.off('fetch', onFetch)
graphql.off('cache', onCache)
graphql.off('reset', onReset)
}
},

@@ -116,0 +113,0 @@ [cacheKey]

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc