Created
March 6, 2021 06:09
-
-
Save kevinnguy/ea3d1f92f078cae86d1f7b936fea06af to your computer and use it in GitHub Desktop.
@apollo/client patch for RN live reloading
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/@apollo/client/apollo-client.cjs.js b/node_modules/@apollo/client/apollo-client.cjs.js | |
index f04faf8..9be6c37 100644 | |
--- a/node_modules/@apollo/client/apollo-client.cjs.js | |
+++ b/node_modules/@apollo/client/apollo-client.cjs.js | |
@@ -5589,8 +5589,8 @@ var QueryData = (function (_super) { | |
return result; | |
}; | |
_this.obsRefetch = function (variables) { var _a; return (_a = _this.currentObservable) === null || _a === void 0 ? void 0 : _a.refetch(variables); }; | |
- _this.obsFetchMore = function (fetchMoreOptions) { return _this.currentObservable.fetchMore(fetchMoreOptions); }; | |
- _this.obsUpdateQuery = function (mapFn) { return _this.currentObservable.updateQuery(mapFn); }; | |
+ _this.obsFetchMore = function (fetchMoreOptions) { var _a; return (_a = _this.currentObservable) === null || _a === void 0 ? void 0 : _a.fetchMore(fetchMoreOptions); }; | |
+ _this.obsUpdateQuery = function (mapFn) { var _a; return (_a = _this.currentObservable) === null || _a === void 0 ? void 0 : _a.updateQuery(mapFn); }; | |
_this.obsStartPolling = function (pollInterval) { | |
var _a; | |
(_a = _this.currentObservable) === null || _a === void 0 ? void 0 : _a.startPolling(pollInterval); | |
@@ -5599,7 +5599,7 @@ var QueryData = (function (_super) { | |
var _a; | |
(_a = _this.currentObservable) === null || _a === void 0 ? void 0 : _a.stopPolling(); | |
}; | |
- _this.obsSubscribeToMore = function (options) { return _this.currentObservable.subscribeToMore(options); }; | |
+ _this.obsSubscribeToMore = function (options) { var _a; return (_a = _this.currentObservable) === null || _a === void 0 ? void 0 : _a.subscribeToMore(options); }; | |
_this.onNewData = onNewData; | |
return _this; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment