Skip to main content

useLegalPage

A legal page by slug; with tenantCode, readable before sign-in.

Kind: React hook
Package: @ovok/core

Import​

import { useLegalPage } from '@ovok/core';

TypeScript signatures​

(slug: string | undefined, options?: OvokCmsOptions): OvokRequestState<OvokCmsDocument>
ParameterTypeDetails
slugstring | undefined—
optionsOvokCmsOptions—

Returns: OvokRequestState<OvokCmsDocument>.

Learn the workflow​

Continue with React for the workflow context and examples.

Source​

View the declaration in the SDK source.