Skip to content

Type alias: ContentChangedHookPayload

Ƭ ContentChangedHookPayload: Object

Note

The content retrieved by this hook differs from the one retrieved by findPage and findElement, as references won't be resolved. Therefore, the references to e.g. images and datasets must be resolved manually. The best option is to use findPage and findElement to fetch the updated data after the hook is fired, as in that case references will already be resolved on the server.

Type declaration

Name Type Description
content any The new content.
node HTMLElement | null HTML element of the element that changed or null.
previewId string Preview ID of the element that changed.

Last update: December 20, 2024