UNPKG

@apollo/client

Version:

A fully-featured caching GraphQL client.

21 lines (20 loc) 568 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.toDiffWithDataState = toDiffWithDataState; /** * @internal * * @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time. */ function toDiffWithDataState(diff) { if ("dataState" in diff) { return diff; } return { ...diff, dataState: diff.complete ? "complete" : diff.result === null ? "empty" : "partial", }; } //# sourceMappingURL=toDiffWithDataState.cjs.map