Closed dickeylth closed 1 month ago
Add React.useMemo for useSize input param to prevent callback param may accidentally updated, which makes unnecessary ResizeObserver recreation, to speed up scroll performance.
React.useMemo
useSize
callback
Nice find!
:tada: This PR is included in version 4.7.12 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Add
React.useMemo
foruseSize
input param to preventcallback
param may accidentally updated, which makes unnecessary ResizeObserver recreation, to speed up scroll performance.