Contentful logo

Contentful Community

How to detect reference field content change

Hi there, I have a custom app displays in the sidebar needs display the content details of a referenced field after the reference field is updated by the default popup editor. I search and tried all over the contentful-ui-extensions-sdk but can’t figure out a way to get notified by the reference field content update. The only hook I found in the sdk is

field.onValueChanged(locale?, cb): function

but this doesn’t work in this case as the onValueChanged callback is only fired on adding or deleting a new reference entry or existing reference entry. But in the case of changing the content of the reference entry, this callback never gets executed.

So does anyone know how to receive a notification in a custom app/extension on the reference field content change?