Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.0-beta-2
-
None
-
None
-
n/a
Description
UIXCollection caches a reference to the collectionModel as internal state. This cache is cleared by many of the lifecycle operations that act on the component (processDecodes, invokeOnComponent, visit tree, encoding). The RowKeySet components properties are populated with the current collection model. It is possible for these component properties to be acted on before the component is processed by the lifecycle. A component rendered prior to the "table" could get a stale model accessing the selectedRowKeys before encoding of the table.
The proposed fix is to always flush the internal cache for property getters that needs the very latest reference to the collection model.