tridion-sites-extensions-api-docs

Home > @tridion-sites/extensions > OptionalBundleEditorHook

OptionalBundleEditorHook type

Hook for accessing Bundle Editor state when available.

Signature:

export type OptionalBundleEditorHook = () => BundleEditorHookResult | undefined;

References: BundleEditorHookResult

Remarks

Safe to be used within or outside of the Bundle Editor. undefined is returned when used outside of Bundle Editor.