Cache DateTimeFormatter instances #4148
Labels
4 - verified
Issues that have been released and confirmed resolved.
estimate - 2
Small fix or update, may require updates to tests.
refactor
Issues tied to code that needs to be significantly reworked.
Milestone
Description
Currently, the
time
util will create multipleIntl.DateTimeFormatter
instances for the same locale. This can be improved by reusing one for the same locale.Proposed Advantages
Less instances generated for the same locale.
Which Component
src/utils/time.ts
Relevant Info
No response
The text was updated successfully, but these errors were encountered: