UNPKG

@apollo/client

Version:

A fully-featured caching GraphQL client.

18 lines (17 loc) 624 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createSignalIfSupported = void 0; /** * @deprecated * This is not used internally any more and will be removed in * the next major version of Apollo Client. */ const createSignalIfSupported = () => { if (typeof AbortController === "undefined") return { controller: false, signal: false }; const controller = new AbortController(); const signal = controller.signal; return { controller, signal }; }; exports.createSignalIfSupported = createSignalIfSupported; //# sourceMappingURL=createSignalIfSupported.cjs.map