createCachedFormatter Method
Creates a formatter that reuses formatter specs for repeated formatting options. Each call creates an independent cache that lasts as long as the returned formatter. Cached specs and missing-format results are not invalidated by changes to formats, default formats, or schemas. Create a new formatter to pick up those changes. Failed spec lookups are not cached and may be retried by subsequent calls.
createCachedFormatter(): { format: }
@returns A formatter with its own cache, suitable for a single content-formatting operation.
Returns - { format: }
A formatter with its own cache, suitable for a single content-formatting operation.
Defined in
Last Updated: 09 November, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.