Skip to content
JS Actions

lzb.components.PreviewServerCallback.onChange

Action called in editor preview after rendered new block content. Use this action to initialize your custom JS.

Attributes

NameTypeDescription
propsObjectprops

Usage

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

Was this article helpful?