tridion-sites-extensions-api-docs

Home > @tridion-sites/extensions > OptionalPageEditorHook

OptionalPageEditorHook type

Hook for accessing Page Editor data when available.

Signature:

export type OptionalPageEditorHook = () => PageEditorHookResult | undefined;

References: PageEditorHookResult

Remarks

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