This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-28e6c9c9-5016-494a-9003-ec2072da5be7 XWIKI-23423 Open

Provide an alternative to xwiki:livedata:entriesUpdated

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-6357f6d6-6f39-44db-8d5b-2bdbcc9287e7 Manuel Leduc created this issue on 30/Jul/25 17:11
 
Summary: Provide an alternative to xwiki:livedata:entriesUpdated
Issue Type: cid:jira-generated-image-avatar-28e6c9c9-5016-494a-9003-ec2072da5be7 Improvement
Affects Versions: 17.6.0
Assignee: Unassigned
Components: Live Data
Created: 30/Jul/25 17:11
Priority: cid:jira-generated-image-static-major-cfac69be-a7e7-4278-aa03-34af13b26e2c Major
Reporter: Manuel Leduc
Description:

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...).

  1. 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
  2. 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.