---
schema_version: "1"
id: 40a9896d5ff6cf646348713228b4ec7c64ef8f11caf9a75645dc6e923130f514
title: Event Handling Lifecycle
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/aura-platform/guides/aura/events/events-overview.md
canonical_url: https://developer.salesforce.com/docs/platform/aura-platform/guide/events-overview.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 4a8d1b9bc33088e352b28e1e3329a926c42489e1a8148de0b8257e8923c952ac
products:
  - Lightning Aura Components Developer Guide
  - Platform Developer Content
---

# Event Handling Lifecycle

The following chart summarizes how the framework handles events.

![Events Overview](https://developer.salesforce.com/media/aura-platform/eventsOverview.jpg)

## 1. Detect Firing of Event

The framework detects the firing of an event. For example, the event could be triggered by a button click in a notifier component.

## 2. Determine the Event Type

**2.1 Component Event**

The parent or container component instance that fired the event is identified. This container component locates all relevant event handlers for further processing.

**2.2 Application Event**

Any component can have an event handler for this event. All relevant event handlers are located.

## 3. Execute each Handler

**3.1 Executing a Component Event Handler**

Each of the event handlers defined in the container component for the event are executed by the handler controller, which can also:

- Set attributes or modify data on the component (causing a re-rendering of the component).
- Fire another event or invoke a client-side or server-side action.

**3.2 Executing an Application Event Handler**

All event handlers are executed. When the event handler is executed, the event instance is passed into the event handler.

## 4 Re-render Component (optional)

After the event handlers and any callback actions are executed, a component might be automatically re-rendered if it was modified during the event handling process.

**See Also**

- [Create a Custom Renderer](https://developer.salesforce.com/docs/platform/aura-platform/js/js-renderers.md)
