JS Actions
lzb.components.PreviewServerCallback.onBeforeChange
Action called in editor preview before renders new block content. Use this action to destroy your custom JS.
Attributes
| Name | Type | Description |
|---|---|---|
props | Object | props |
Usage
wp.hooks.addAction(
"lzb.components.PreviewServerCallback.onBeforeChange",
"my.custom.namespace",
function (props) {
console.log(props);
}
);