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
Définition
La définition TypeScript telle qu'elle apparaît dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.
Valeur résolue
Écosystème
Utilisé par
Composables et composants qui consomment cette constante.
useNumberFormat
OrigamNumberFormat
Usage
Exemples
Extraits de code prêts à coller utilisant cette constante.
The LRU cache capping in useNumberFormat