I am trying to implement lazy loading of elements on node Expand Events. There is a problem with this. Thus, when extending the event, I create new elements for the extended node using
HierarchicalContainer.addItem()
But this method calls
containerItemSetChange()
class method AbstractSelect. There
itemIdMapper.removeAll()
. Thus, the map is cleared, and all elements of the tree receive new identifiers on the map. When the response from the server comes to the client side, it does not know this new identifier, because it has the previous identifier (extended node), so that new elements are not added or displayed on the client side.
I tried https://vaadin.com/forum/-/message_boards/view_message/131802 . But, in fact, the data for the entire tree is sent from the server to the client. And I expect that only the data needed for a particular node will be sent. Therefore, there is no "+" performance for this.
Can someone help me with this problem? Thanks in advance.
Edition
In fact, I also needed to change the field
partialUpdate
true, because on the first server it sends all the contents of the tree to the client side.
source share