Skip to content

Commit

Permalink
Release 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
amannn committed Jul 17, 2018
1 parent 1ea8da8 commit 583a00f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ The `NetworkStatusNotifier` provides a [render prop](https://cdb.reacttraining.c
- `graphQLErrors?`: [`GraphQLError[]`](https://github.com/graphql/graphql-js/blob/358df97ac00f6abf7591277853e0e828a13a28bb/src/error/GraphQLError.js#L22)
- `networkError?`: [`Error`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error)

The `loading` property will be `true` when there is at least one pending query or mutation. Note that subscriptions don't affect this property, however they can potentially set the `error` property.

The `error` object has the same structure, as the one provided by [apollo-link-error](https://github.com/apollographql/apollo-link/tree/master/packages/apollo-link-error).

By default the `error` will be set to `null` when a new operation is started.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-apollo-network-status",
"version": "1.0.0",
"version": "1.1.0",
"description": "Brings information about the global network status from Apollo into React.",
"main": "dist/index.js",
"repository": "[email protected]:molindo/react-apollo-network-status.git",
Expand Down

0 comments on commit 583a00f

Please sign in to comment.