js-memory-leak-detector
Version:
A comprehensive memory leak detector for web applications with Redux Toolkit support
17 lines • 532 B
TypeScript
import { LeakSuspect } from './types';
export declare class ReduxTracker {
private storeSubscriptions;
private selectorCalls;
private originalStoreSubscribe?;
private storeRef?;
constructor();
private patchReduxStore;
private detectStoreFromWindow;
patchStore(store: any): void;
private setupDevToolsHook;
trackSelectorUsage(selectorName: string): void;
getActiveSubscriptions(): number;
detectLeaks(): LeakSuspect[];
cleanup(): void;
}
//# sourceMappingURL=redux-tracker.d.ts.map