LivePreviewConfig
Custom Live Preview configuration to be used with the initLivePreview method.
interface LivePreviewConfig extends InitConfig {
onLiveEdit: (livePreviewUrl?: string) => Promise<void> | void;
}Properties
| Name | Required | Type | Description |
|---|---|---|---|
onLiveEdit | Required | (livePreviewUrl?: string) => Promise<void> | void | Callback function to be executed when the live preview is initiated and on every subsequent edit. Contentstack doesn't provide updated data, so you have to manually refetch it from the Middleware. |