Home > @tridion-sites/extensions > OptionalComponentEditorHook
Hook for accessing Component Editor data when available.
Signature:
export type OptionalComponentEditorHook = () => ComponentEditorHookResult | undefined;
References: ComponentEditorHookResult
Safe to be used within or outside of the Component Editor. undefined
is returned when used outside of Component Editor.