Skip to content
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

NameTypeDescription
propsObjectprops

Usage

JS
wp.hooks.addAction(  "lzb.components.PreviewServerCallback.onBeforeChange",  "my.custom.namespace",  function (props) {  console.log(props);  } );

Was this article helpful?