Skip to content

Commit 2204e56

Browse files
committed
add HierarchicalCommunicationController to the list, minor polish
1 parent 8f06831 commit 2204e56

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

articles/upgrading/index.adoc

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -309,11 +309,11 @@ crud.getNewButton().addThemeVariants(ButtonVariant.LUMO_PRIMARY);
309309
----
310310

311311
==== Grid & Tree Grid
312-
Tree Grid's client-side approach to data loading has been refactored. Instead of requesting each hierarchy level separately, it now sends a single request to the server and receives all visible data in a flat list. This resulted in several breaking changes that are explained below.
312+
Tree Grid's client-side approach to data loading has been refactored. Instead of requesting data for each hierarchy level separately, it now sends a single request for the visible range, and the server returns the corresponding items as a flat list. This results in several breaking changes that are explained below.
313313

314-
The [propertyname]`pageSize` property now applies to the entire flattened hierarchy rather than each level individually as before.
314+
The [propertyname]`pageSize` property now applies to the entire flattened hierarchy rather than to each level individually as before.
315315

316-
Expanded items are no longer exposed to the client side as a plain array. Instead, the web component receives each item’s depth information and uses it to display the data as a tree structure.
316+
Expanded items are no longer exposed to the client side as a plain array. Instead, the web component receives depth information for each item and uses it to display the data as a tree structure.
317317

318318
As a result, the [methodname]`TreeGridElement#isLoadingExpandedRows` TestBench API has been removed. You no longer need to wait for expanded rows specifically since they are loaded in the same request with other rows.
319319

@@ -384,10 +384,9 @@ The [classname]`TreeGridArrayUpdater` interface has also been removed. The [clas
384384
385385
The [classname]`HierarchicalDataCommunicator` class in Flow has been fully refactored to use a flat list structure for representing hierarchical data on the client side. Although it still extends the [classname]`DataCommunicator` class, its internal implementation has been completely redesigned to optimize hierarchy rendering and address various bugs. This caused the following breaking changes:
386386
387-
* The [propertyname]`arrayUpdater` parameter has been removed from all [classname]`HierarchicalDataCommunicator` constructors. It now re-renders modified items by making granular [methodname]`Update#set(int index, List items)` calls.
388-
* The protected [methodname]`createHierarchyMapper` and [methodname]`getHierarchyMapper` methods, as well as the [classname]`HierarchyMapper`` concept itself, have been removed.
389-
* The protected [methodname]`doUnregister` method has been removed.
390-
* The protected [methodname]`getPassivatedKeys` method has been removed.
387+
* Both the [classname]`HierarchicalCommunicationController` and [classname]`HierarchyMapper` concepts have been retired, and all related protected APIs in [classname]`HierarchicalDataCommunicator` have been removed, including such methods as [methodname]`createHierarchyMapper` and [methodname]`getHierarchyMapper`.
388+
* The [propertyname]`arrayUpdater` parameter has been removed from all [classname]`HierarchicalDataCommunicator` constructors. The data communicator now re-renders modified items by making granular [methodname]`Update#set(int index, List items)` calls.
389+
* The protected [methodname]`doUnregister` and [methodname]`getPassivatedKeys` methods have been removed.
391390
* The protected [methodname]`setFilter` method has been removed. Use the returned consumer of the [methodname]`setDataProvider(HierarchicalDataProvider, Object)` method instead.
392391
* The protected [methodname]`collapse(T item, boolean syncClient)` method has been removed. Use the [methodname]`collapse(T item)` method instead.
393392
* The protected [methodname]`expand(T item, boolean syncClient)` method has been removed. Use the [methodname]`expand(T item)` method instead.

0 commit comments

Comments
 (0)