content.status
The instance's lifecycle status.
content.status
The instance's lifecycle status, advanced by init() (which the read methods call lazily).
Type: 'created' | 'initializing' | 'initialized-partial' | 'initialized-full'
| Value | Meaning |
|---|---|
'created' | Before initialization. |
'initializing' | While the manifest and sources are loading. |
'initialized-partial' | Metadata (frontmatter) loaded; bodies parsed lazily on get(). |
'initialized-full' | Bodies parsed too, after init({ partial: false }). |
Usage
status.ts
content.status // 'created'
await content.list() // triggers init
content.status // 'initialized-partial'