useCmsDocuments
A page of a CMS collection, in options.locale or else the runtime's language.
Kind: React hook
Package: @ovok/core
Import
import { useCmsDocuments } from '@ovok/core';
TypeScript signatures
<T extends object = OvokCmsDocument>(collection: string, options?: OvokCmsListOptions): OvokRequestState<OvokCmsPage<T>>
| Parameter | Type | Details |
|---|---|---|
collection | string | — |
options | OvokCmsListOptions | — |
Returns: OvokRequestState<OvokCmsPage<T>>.
Learn the workflow
Continue with React for the workflow context and examples.