Skip to content
HomePagesHomePages template kit

usedFactsFromSchema

The registry keys a section asks of the property — the union of its slot bindings, its declared `reads`, and every fact its `compute()` callbacks are traced reading.

The registry keys a section asks of the property — the union of its slot bindings, its declared reads, and every fact its compute() callbacks are traced reading. Sorted and deduplicated, so the serialized value is stable across builds and safe to fold into a content hash.

Takes the section’s RAW defineSchema result, never the parsed schema: the reads list and the compute handle→fn map ride on symbol keys, which is exactly what keeps them out of the serialized schema jsonb, and parsing returns a fresh object carrying neither.

Import from @homepages/template-kit.

function usedFactsFromSchema(schema: SectionSchemaShape): string[]
Name Type Required Description
schema SectionSchemaShape required

string[]