Perf Improvements
shouldIntlComponentUpdate
Improved the perf of shouldIntlComponentUpdate
util which now checks if context.intl
is the same as nextContext.intl
before doing a shallow compare of their filtered props.
(#421)
Nested <IntlProvider>
s
Creating Intl*
formatter instances is expensive, so <IntlProvider>
memoizes the Intl*
constructors to reuse the formatter instances. These memoized formatters are now shared with nested <IntlProvider>
instances.
This sharing should increase the rendering perf of component architectures which use nested <IntlProvider>
instances.
(#421)
Bug Fixes
- Removed calls to Object.assign (#403)