<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [FetchAndSaveHooks](./x-components.fetchandsavehooks.md) &gt; [onSuccess](./x-components.fetchandsavehooks.onsuccess.md)

## FetchAndSaveHooks.onSuccess property

Asynchronous callback executed when the [FetchAndSaveHooks.fetch](./x-components.fetchandsavehooks.fetch.md) is performed successfully.

**Signature:**

```typescript
onSuccess: (context: Context, response: Response) => void;
```
