Skip to main content

useCmsDocument

No behavioral description is attached to this declaration. The public signature, parameter and return types, and source location below document its published contract.

Kind: React hook
Package: @ovok/native

Import​

import { useCmsDocument } from '@ovok/native/cms';

TypeScript signatures​

<T extends object = OvokCmsDocument>(collection: string, slug: string | undefined, options?: OvokCmsOptions): OvokRequestState<T>
ParameterTypeDetails
collectionstring—
slugstring | undefined—
optionsOvokCmsOptions—

Returns: OvokRequestState<T>.

Source​

View the declaration in the SDK source.