@apollo/client
Version:
A fully-featured caching GraphQL client.
18 lines (17 loc) • 446 B
JavaScript
/**
* @internal
*
* @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.
*/
export function toDiffWithDataState(diff) {
if ("dataState" in diff) {
return diff;
}
return {
...diff,
dataState: diff.complete ? "complete"
: diff.result === null ? "empty"
: "partial",
};
}
//# sourceMappingURL=toDiffWithDataState.js.map