fix-modus-component-event-issues

Debug and fix Modus web component event handling issues in React and Angular.

3|2|Updated Oct 3, 2025
One-click install
npx skills add https://github.com/julianoczkowski/create-trimble-app --skill fix-modus-component-event-issues
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fix-modus-component-event-issues
Source: https://github.com/julianoczkowski/create-trimble-app/tree/main/templates/react/.cursor/skills/fix-modus-component-event-issues
Command: npx skills add https://github.com/julianoczkowski/create-trimble-app --skill fix-modus-component-event-issues

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Debug and fix common event handling problems with Modus web components.

Core Features & Use Cases

  • Comprehensive debugging guidance for event listeners in Modus components across React and Angular.
  • Step-by-step checks for correct ref usage, event names, and cleanup to prevent memory leaks and duplicate handlers.
  • Practical patterns and solutions for common issues like events not firing, wrong targets, and stale closures.

Quick Start

Run the Modus event debugging workflow on your project and follow the steps to attach listeners and verify event names.

Frequently Asked Questions about fix-modus-component-event-issues

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why does my Modus web component event handler not fire in React?

Modus web component event handlers fail to fire in React due to incorrect event listener setup or improper event naming conventions. This Skill provides debugging patterns and checklists to diagnose missing invocations, verify correct ref usage, and ensure proper listener attachment for reliable interactions.

How do I debug Modus component events not working in Angular?

Debug Modus component events in Angular by running step-by-step checks for correct ref usage, event names, and cleanup to prevent memory leaks and duplicate handlers. This Skill provides debugging workflows enforcing correct listener setup and robust validation to resolve event handling problems.

What's the best way to fix stale closures and duplicate Modus event handlers?

Fix stale closures and duplicate Modus event handlers by applying practical patterns for safe ref usage and strict listener cleanup. This Skill provides targeted solutions ensuring correct event listener setup, preventing memory leaks, and eliminating duplicate handler invocations.

Does the Modus event debugging workflow support both React and Angular?

The Modus event debugging workflow fully supports both React and Angular, providing comprehensive debugging guidance for event listeners across both frameworks. It applies to scenarios where events do not fire, handlers are not invoked, or cleanup is missing, ensuring reliable web component interactions.

How do I prevent memory leaks when attaching Modus web component event listeners?

Prevent memory leaks when attaching Modus web component event listeners by enforcing proper cleanup and avoiding duplicate handlers. This Skill provides checklists to diagnose missing cleanup, enforce correct event listener setup, and ensure robust validation for reliable interactions without memory leaks.