@apollo/client
Version:
A fully-featured caching GraphQL client.
28 lines (27 loc) • 711 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.StreamArrayState = void 0;
const optimism_1 = require("optimism");
class StreamArrayState {
truncate = false;
_streamPosition = 0;
path;
dep = (0, optimism_1.dep)();
constructor(path) {
this.path = path;
}
depend() {
this.dep(this.path);
}
get streamPosition() {
return this._streamPosition;
}
set streamPosition(value) {
if (value !== this._streamPosition) {
this._streamPosition = value;
this.dep.dirty(this.path);
}
}
}
exports.StreamArrayState = StreamArrayState;
//# sourceMappingURL=StreamArrayState.cjs.map