this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Preload IntlSegmenter polyfill if needed

+9
+9
src/components/intl-segmenter-suspense.jsx
··· 6 6 7 7 const supportsIntlSegmenter = !shouldPolyfill(); 8 8 9 + // Preload IntlSegmenter 10 + setTimeout(() => { 11 + queueMicrotask(() => { 12 + if (!supportsIntlSegmenter) { 13 + import('@formatjs/intl-segmenter/polyfill-force').catch(() => {}); 14 + } 15 + }); 16 + }, 1000); 17 + 9 18 export default function IntlSegmenterSuspense({ children }) { 10 19 if (supportsIntlSegmenter) { 11 20 return <Suspense fallback={<Loader />}>{children}</Suspense>;