Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-23423

Provide an alternative to xwiki:livedata:entriesUpdated

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 17.6.0
    • Live Data
    • None
    • Unknown

    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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mleduc Manuel Leduc
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: