tridion-sites-extensions-api-docs

Home > @tridion-sites/extensions > OptionalContentExplorerHook

OptionalContentExplorerHook type

Hook for accessing Content Explorer data and methods when available.

Signature:

export type OptionalContentExplorerHook = () => ContentExplorerHookResult | undefined;

References: ContentExplorerHookResult

Remarks

Safe to be used within or outside of the Content Explorer. undefined is returned when used outside of Content Explorer.