@stolostron/multicluster-sdk
Version:
Provides extensions and APIs that dynamic plugins can use to leverage multicluster capabilities provided by Red Hat Advanced Cluster Management.
9 lines • 531 B
TypeScript
/**
* Custom hook to memoize a value using deep comparison. Useful for preventing unnecessary re-renders when a calling component creates a new object on every call.
*
* @param value - The value to memoize
* @param stringify - Whether to stringify the value
* @returns A tuple containing the memoized value and a boolean indicating if the value has changed
*/
export declare const useDeepCompareMemoize: <T = any>(value: T, stringify?: boolean) => [T | undefined, boolean];
//# sourceMappingURL=useDeepCompareMemoize.d.ts.map