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