Is there a way to know when an item is removed from an array or a ListWithDetail?

Hi,

I am using Vue3 and I need to send a request to a remote server when a component’s data, rendered by a custom renderer, is removed. If this component is an item (or a nested element of an item) in an array, for example, is there a way to detect within the component that it has been removed by the removeItems method of the array?

Hi @AntoineRefpro,

There are two approaches for this:

  • Provide a custom renderer for the array and wrap the provided removeItems method.
  • Listen to the data changes outside the form and detect and handle there when an element is removed.