Skip to content
This repository was archived by the owner on Apr 13, 2023. It is now read-only.

Commit 09ff5a7

Browse files
authored
Merge branch 'master' into hooks-launch-prep
2 parents 9272c3b + 38567ea commit 09ff5a7

File tree

9 files changed

+10
-16
lines changed

9 files changed

+10
-16
lines changed

packages/all/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-apollo",
33
"description": "React Apollo Hooks, Components, and HOC.",
4-
"version": "3.0.0-beta.4",
4+
"version": "3.0.0-beta.5",
55
"author": "opensource@apollographql.com",
66
"keywords": [
77
"apollo",

packages/common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@apollo/react-common",
33
"description": "React Apollo common utilities.",
4-
"version": "0.1.0-beta.9",
4+
"version": "0.1.0-beta.10",
55
"author": "opensource@apollographql.com",
66
"keywords": [
77
"apollo",

packages/components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@apollo/react-components",
33
"description": "React Apollo Query, Mutation and Subscription components.",
4-
"version": "0.1.0-beta.8",
4+
"version": "0.1.0-beta.9",
55
"author": "opensource@apollographql.com",
66
"keywords": [
77
"apollo",

packages/components/src/Query.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ export namespace Query {
2525
variables: PropTypes.object,
2626
ssr: PropTypes.bool,
2727
partialRefetch: PropTypes.bool,
28-
returnPartialData: PropTypes.bool,
28+
returnPartialData: PropTypes.bool
2929
};
3030
}

packages/hoc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@apollo/react-hoc",
33
"description": "React Apollo `graphql` higher-order component.",
4-
"version": "0.1.0-beta.8",
4+
"version": "0.1.0-beta.9",
55
"author": "opensource@apollographql.com",
66
"keywords": [
77
"apollo",

packages/hooks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@apollo/react-hooks",
33
"description": "React Apollo Hooks.",
4-
"version": "0.1.0-beta.11",
4+
"version": "0.1.0-beta.12",
55
"author": "opensource@apollographql.com",
66
"keywords": [
77
"apollo",

packages/hooks/src/data/QueryData.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -189,12 +189,6 @@ export class QueryData<TData, TVariables> extends OperationData {
189189
return result;
190190
}
191191

192-
private updateCurrentData() {
193-
if (this.isMounted) {
194-
this.forceUpdate();
195-
}
196-
}
197-
198192
private prepareObservableQueryOptions() {
199193
this.verifyDocumentType(this.getOptions().query, DocumentType.Query);
200194
const displayName = this.getOptions().displayName || 'Query';
@@ -286,12 +280,12 @@ export class QueryData<TData, TVariables> extends OperationData {
286280
return;
287281
}
288282

289-
this.updateCurrentData();
283+
this.forceUpdate();
290284
},
291285
error: error => {
292286
this.resubscribeToQuery();
293287
if (!error.hasOwnProperty('graphQLErrors')) throw error;
294-
this.updateCurrentData();
288+
this.forceUpdate();
295289
}
296290
});
297291
}

packages/ssr/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@apollo/react-ssr",
33
"description": "React Apollo server-side rendering utilities",
4-
"version": "0.1.0-beta.1",
4+
"version": "0.1.0-beta.2",
55
"author": "opensource@apollographql.com",
66
"keywords": [
77
"apollo",

packages/testing/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@apollo/react-testing",
33
"description": "React Apollo testing utilities.",
4-
"version": "0.1.0-beta.6",
4+
"version": "0.1.0-beta.7",
55
"author": "opensource@apollographql.com",
66
"keywords": [
77
"apollo",

0 commit comments

Comments
 (0)