Alokai

LivePreviewConfig

Custom Live Preview configuration to be used with the initLivePreview method.

interface LivePreviewConfig extends InitConfig {
	onLiveEdit: (livePreviewUrl?: string) => Promise<void> | void;
}

Properties

NameRequiredTypeDescription
onLiveEditRequired(livePreviewUrl?: string) => Promise<void> | voidCallback 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.

On this page