@meonode/ui
Version:
A structured approach to component composition, direct CSS-first prop styling, built-in theming, smart prop handling (including raw property pass-through), and dynamic children.
30 lines • 1.13 kB
TypeScript
/**
* MountTrackerUtil keeps track of which BaseNode instances are currently mounted in the DOM.
* It provides a simple registry for mount/unmount state that other systems
* (like NavigationCacheManager) can query for safe cache eviction.
*/
export declare class MountTrackerUtil {
private constructor();
private static _mountedCounts;
private static _unmountCallCount;
/**
* Checks if a node is currently mounted.
*/
static isMounted(key: string): boolean;
/**
* Tracks a node as mounted. Increments the reference count for the stable key.
*/
static trackMount(key: string): void;
/**
* Decrements the reference count for the stable key.
* If the count reaches zero, the node is considered fully unmounted.
* @returns True if the node is still mounted (count > 0), false if fully unmounted.
*/
static untrackMount(key: string): boolean;
/**
* Cleans up all internal state of the MountTrackerUtil.
* Removes all tracked nodes and debug counters.
*/
static cleanup(): void;
}
//# sourceMappingURL=mount-tracker.util.d.ts.map