← @mortar-kit/core

useContentfunction

import { useContent } from '@mortar-kit/core'

function useContent(): ContentReader

The content reader for the current component, from ContentContext. Call it in a component body; read with it in a memo (under <Loading>). Throws if no source is provided.

Returns

ContentReader