Files
klz-cables.com/.pnpm-store/v10/files/e2/3dadbda394fd47666f4b2b75fc4ed027b5071fa8aee21bce41fcab171e7869e6a10f806004690142db520a615b773caed312c04eb6f93bfb0fdc591d416ab9
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

18 lines
530 B
Plaintext

import { cache } from 'react';
import { createFormatter } from 'use-intl/core';
import getDefaultNow from './getDefaultNow.js';
function getFormatterCachedImpl(config) {
return createFormatter({
...config,
// Only init when necessary to avoid triggering a `dynamicIO` error
// unnecessarily (`now` is only needed for `format.relativeTime`)
get now() {
return config.now ?? getDefaultNow();
}
});
}
const getFormatterCached = cache(getFormatterCachedImpl);
export { getFormatterCached as default };