detect_memory_leak
Analyzes RxJS code to find memory leaks from unmanaged subscriptions, while avoiding false positives by recognizing modern cleanup patterns.
Instructions
Analyze RxJS code for potential memory leaks and subscription management issues. Recognizes modern auto-cleanup patterns (takeUntilDestroyed, async pipe, useEffect cleanup, onUnmounted) to avoid false positives.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | RxJS code to analyze for potential memory leaks | |
| componentLifecycle | No | Component lifecycle context | none |