← @mortar-kit/core

ContentClientinterface

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

interface ContentClient

What contentClient builds.

Properties

source: ContentSource

Cached reads, for routes, layouts and bricks (<ContentContext value={source}>).

freshSource: ContentSource

Uncached reads, for the admin's preview: always what is saved now.

content: Content

Reads and writes for <Admin content>.