Slash forward icon
  • Documentation
  • Plugins
  • API Reference
  • Examples
  • GitHub
    • comarkContent
    • content.get
    • content.list
    • content.navigation
    • content.stat
    • content.getSource
    • content.handler
    • content.watch
    • content.update
    • content.remove
    • content.cache
    • content.manifest
    • content.hooks
    • content.status
    • content.init
    • content.loadSnapshot
    • content.addParser
    • content.addListingFields
    • content.addServeHandler
    • createContentClient
    • content.get
    • content.list
    • content.navigation
    • defineContentPlugin
    • defineContentClientPlugin
    • Content
    • Client
    • Plugins
    • Typegen
    • File parsed
  • Cheat Sheet
  • CLI
Reference

content.loadSnapshot()

Hydrate one source's parsed bodies into the cache from a snapshot.

content.loadSnapshot(source)

Hydrates one source's parsed bodies into the cache from cache.loadSnapshot. Called lazily by get() the first time a source is read; a no-op unless a cache.loadSnapshot loader is configured.

Parameters:

  • source: the source name.

Returns: Promise<void>

Usage

usage.ts
await content.loadSnapshot('default')

content.init

Initialize the instance by hydrating the manifest and reading source metadata.

content.addParser

Register a parser for one or more file extensions.

On this page

  • content.loadSnapshot(source)
  • Usage
  • Edit this page on GitHub
  • Star on GitHub
  • Comark docs
© 2026 Vercel, Inc.