---
title: resolveAllData
---

# resolveAllData

Utility function to execute all [`resolveData` methods](/docs/api-reference/configuration/component-config#resolvedatadata-params) on a data payload outside of the [`<Puck>`](/docs/api-reference/components/puck) editor, returning the updated value.

```tsx copy

const updatedData = await resolveAllData(data, config);
```

This is useful if you need to run your resolvers before passing your data to [`<Render>`](/docs/api-reference/components/render).

## Args

| Param                   | Example              | Type                                               |
| ----------------------- | -------------------- | -------------------------------------------------- |
| `data`                  | `{}`                 | [Data](/docs/api-reference/data-model/data)        |
| `config`                | `{ components: {} }` | [Config](/docs/api-reference/configuration/config) |
| [`metadata`](#metadata) | `{}`                 | Object                                             |

### metadata

An object containing additional data provided to each component's [resolveData](/docs/api-reference/configuration/component-config#resolvedatadata-params) functions.

## Returns

The updated [Data](/docs/api-reference/data-model/data) object.
