1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var NetworkStatus;
|
4 | (function (NetworkStatus) {
|
5 | NetworkStatus[NetworkStatus["loading"] = 1] = "loading";
|
6 | NetworkStatus[NetworkStatus["setVariables"] = 2] = "setVariables";
|
7 | NetworkStatus[NetworkStatus["fetchMore"] = 3] = "fetchMore";
|
8 | NetworkStatus[NetworkStatus["refetch"] = 4] = "refetch";
|
9 | NetworkStatus[NetworkStatus["poll"] = 6] = "poll";
|
10 | NetworkStatus[NetworkStatus["ready"] = 7] = "ready";
|
11 | NetworkStatus[NetworkStatus["error"] = 8] = "error";
|
12 | })(NetworkStatus = exports.NetworkStatus || (exports.NetworkStatus = {}));
|
13 | function isNetworkRequestInFlight(networkStatus) {
|
14 | return networkStatus < 7;
|
15 | }
|
16 | exports.isNetworkRequestInFlight = isNetworkRequestInFlight;
|
17 |
|
\ | No newline at end of file |