---
schema_version: "1"
id: 2d8cb55254595c1b02f4aa717062ea4627c647b2d9d1f556b361912450af14f1
title: Tab Refreshed
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/lightning-base-components/lightning-design-system/guides/aura/components/lightning/tabRefreshed/aura-tab-refreshed.md
canonical_url: https://developer.salesforce.com/docs/platform/lightning-component-reference/guide/aura-tab-refreshed.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 6f6ce416b9ea425d429d916297f97cc1256f6ab8ab5aaa0f4d4ce87d78a4b685
products:
  - Lightning Component Reference
---
# Tab Refreshed

**`lightning:tabRefreshed`**

Fires when a Console workspace or subtab has been successfully refreshed.

**For Use In**

Lightning Experience

::::::tabset{tabs='[ "Develop", "Specifications"]'}

:::::tab

`lightning:tabRefreshed` is an application event that indicates a tab has been refreshed successfully. This event is supported in Lightning console apps only.

Handle the event using `aura:handler`.

```html
<aura:component implements="flexipage:availableForAllPageTypes" access="global">
  <lightning:workspaceAPI aura:id="workspace" />
  <aura:handler event="lightning:tabRefreshed" action="{! c.onTabRefreshed }" />
</aura:component>
```

In your client-side controller, retrieve the ID of the tab that's refreshed.

```javascript
({
  onTabRefreshed: function (component, event, helper) {
    var refreshedTabId = event.getParam("tabId");
    var workspaceAPI = component.find("workspace");
    workspaceAPI.getTabInfo({
      tabId: refreshedTabId,
      callback: function (error, response) {
        console.log(response);
      },
    });
  },
});
```

For more information, see the [Salesforce Console Developer Guide](https://developer.salesforce.com/docs/atlas.en-us.api_console.meta/api_console/).


:::::

:::::tab
## Attributes

| Name    | Description                     | Type   | Default | Required                                     |
| ------- | ------------------------------- | ------ | ------- | -------------------------------------------- |
| `tabId` | The currently refreshed tab ID. | string |         | ![Yes](https://developer.salesforce.com/media/check.png) |

:::::

::::::
