/** * Modified from https://github.com/facebook/react/blob/201af81b0168cabea3cc07cd8201378a4fec4aaf/packages/shared/shallowEqual.js * Copying is the suggested way, as mentioned here https://github.com/facebook/react/issues/16919 */ /** * A custom React.memo() comparator function factory that can be used with * components that use `useFragment` on a GraphQL type that implements the * `Node` interface, in which case only the `id` value needs to be equal to * avoid a re-render. * * @todo * Support arrays with fragment references * * @param fragmentReferenceProps * The props that refer to fragment references and should only be compared by * their [Node] ids. * * @returns * A comparator with parameters typed such that TS can verify the component * passed to React.memo() has props that match. */ export declare function shallowCompareFragmentReferences(...fragmentReferenceProps: K[]): (prevProps: ComparatorParam, nextProps: ComparatorParam) => boolean; //# sourceMappingURL=shallowCompareFragmentReferences.d.ts.map