Currently, xwiki:livedata:entriesUpdated is the mechanism to provide to enhance the results provided by the source. It is used as a sign that the DOM has been refreshed after a data update (e.g., pagination change, refresh, filters change...).
- We can see with XWIKI-23415 that this mechanism is fragile as we don't control how Vue is refreshing the DOM after the reactive data are updated
- this is also breaking the development model of Vue where direct manipulation of the DOM is avoided
Instead, we should provide a new event with the new data as a parameter and wait for the listener to update the data before assigning them to the component. That way, we could avoid relying on the rendering mechanism of Vue. |