@paypal/react-paypal-js
Version:
React components for the PayPal JS SDK
8 lines (7 loc) • 456 B
TypeScript
import type React from "react";
/**
* Return a {@link React.MutableRefObject} a stable ref that's `true` if the component is mounted, `false` otherwise.
*
* The return must, unfortunately be included in dependency arrays. See the issue here: [\[eslint-plugin-react-hooks\] allow configuring custom hooks as "static" #16873](https://github.com/facebook/react/issues/16873).
*/
export declare function useIsMountedRef(): React.MutableRefObject<boolean>;