tridion-sites-extensions-api-docs

Home > @tridion-sites/extensions > OptionalEditorHook

OptionalEditorHook type

Hook for accessing Item Editor data when available.

Signature:

export type OptionalEditorHook = () => EditorHookResult | undefined;

References: EditorHookResult

Remarks

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