UNPKG

@apollo/client

Version:

A fully-featured caching GraphQL client.

13 lines (12 loc) 691 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.dataStateErrorCache = void 0; // When working with an incremental result, errors in `@defer` fragments might // bubble to the fragment boundary which leaves a hole in the data. When the // `errorPolicy` is `"none"` we `throw` the constructed error so that it moves // through the observable error flow. Because of this, we need a way to // communicate the known dataState returned by QueryInfo to ObservableQuery. // This ensures a "streaming" dataState can still be reported for errorPolicy: // "none" queries. exports.dataStateErrorCache = new WeakMap(); //# sourceMappingURL=dataStateErrorCache.cjs.map