UNPKG

@apollo/client

Version:

A fully-featured caching GraphQL client.

28 lines 985 B
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in this directory. */ /* eslint-disable */ import * as React from "react"; const $empty = Symbol.for("react.memo_cache_sentinel"); // Re-export React.c if present, otherwise fallback to the userspace polyfill for versions of React // < 19. export const c = ("__COMPILER_RUNTIME" in React && typeof Object(React).__COMPILER_RUNTIME?.c === "function") ? Object(React).__COMPILER_RUNTIME.c : function c(size) { return React.useMemo(() => { const $ = new Array(size); for (let ii = 0; ii < size; ii++) { $[ii] = $empty; } // This symbol is added to tell the react devtools that this array is from // useMemoCache. // @ts-ignore $[$empty] = true; return $; }, []); }; //# sourceMappingURL=index.js.map