You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When we use renderItem or renderItemTitle, props get called expanded tree list item amount of times. Even when functions are memoized. For smaller amount of list items the performance hit is not noticeable, when clicking or using up and down keyboard keys. However if we have a list of 1000 expanded items, performance hit is noticeable.
Yes, the render method for items are retriggered on tree state changes, since every item is provided with information about the tree state in their props, so tree items wouldn't be able to display data they otherwise can.
Describe the bug
When we use
renderItem
orrenderItemTitle
, props get called expanded tree list item amount of times. Even when functions are memoized. For smaller amount of list items the performance hit is not noticeable, when clicking or using up and down keyboard keys. However if we have a list of 1000 expanded items, performance hit is noticeable.To Reproduce
Steps to reproduce the behavior:
renderItemTitle
is being rerenderedrenderItemTitle
is being rerenderedExpected behavior
renderItem
andrenderItemTitle
elements not affected by keyboard presses or mouse clicks should not rerender.Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: