@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.
41 lines • 1.25 kB
TypeScript
declare global {
interface Window {
__MEONODE_CLEANUP_REGISTERED?: boolean;
}
}
/**
* Lightweight navigation handler that clears cache on SPA navigation.
*/
export declare class NavigationCacheManagerUtil {
private constructor();
private static _instance;
private static _originalPushState;
private static _originalReplaceState;
private static _isPatched;
private _isListening;
private _cleanupTimeout;
static getInstance(): NavigationCacheManagerUtil;
/**
* Start listening for navigation events. Idempotent.
*/
start(): void;
/**
* Stops listening for navigation events and restores original browser APIs.
* This is important for cleanup during HMR or when unmounting the library.
*/
private _stop;
/**
* Debounced navigation handler. Clears mounted element cache and props cache.
*/
private _handleNavigation;
/**
* Patch history.pushState/replaceState to detect SPA navigation.
*/
private _patchHistoryMethods;
/**
* Setup automatic cleanup on page unload.
* Covers HMR, navigation away, and browser close.
*/
private _setupAutoCleanup;
}
//# sourceMappingURL=navigation-cache-manager.util.d.ts.map