resolveAllData
Utility function to execute all resolveData
methods on a data payload outside of the <Puck>
editor, returning the updated value.
import { resolveAllData } from "@measured/puck";
const updatedData = await resolveAllData(data, config);
This is useful if you need to run your resolvers before passing your data to <Render>
.
Args
Param | Example | Type |
---|---|---|
data | {} | Data |
config | { components: {} } | Config |
Returns
The updated Data object.