---
schema_version: "1"
id: 050631c561137b7a28ee165974a642688268fffa04c026f9af43c785740274ff
title: setAbortable()
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/aura-platform/guides/aura/ref-jsapi/ref-jsapi-action-setabortable.md
canonical_url: https://developer.salesforce.com/docs/platform/aura-platform/guide/ref-jsapi-action-setabortable.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 02228b0159f58120e32441ef85ff7425a7296aeaa45ed97d03cf5797d0e566fc
products:
  - Lightning Aura Components Developer Guide
  - Platform Developer Content
---

# setAbortable()

Sets an action as abortable. If the component is not valid, abortable actions are not sent to the server. A component is automatically destroyed and marked invalid by the framework when it is unrendered. Actions not marked abortable are always sent to the server regardless of the validity of the component.

For example, a save or edit action should not be set as abortable to ensure that it’s always sent to the server even if the component is deleted. Setting an action as abortable can’t be undone.

## Signature

`setAbortable()`

**See Also**  


-   [Abortable Actions](https://developer.salesforce.com/docs/platform/aura-platform/controllers-server/controllers-server-abortable-actions.md)

