NUMBER_FORMAT_LRU_CAPACITY
const
Internationalisation
Maximum number of Intl.NumberFormat instances kept in the module-level LRU cache. 16 covers most realistic UIs (a few locales × a few format variants) without leaking memory in long-lived apps where every prop tweak would otherwise spawn a fresh resolver.
TypeScript
Definition
The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.
Resolved value
Ecosystem
Used by
Composables and components that consume this constant.
useNumberFormat
OrigamNumberFormat
Usage
Examples
Ready-to-paste code snippets using this constant.
The LRU cache capping in useNumberFormat