I am working on a Lightning Web Component that is placed on record page and retrieves data for the record. The component visualizes two links, represented by lightning-formatted-text. Both links use a couple of field values from the record in their urls as parameters. This is already built and working. The problem comes when I update any record field without refreshing the page. Links keep using the old values, or if blank - keep showing the old errors.
I wonder how can I handle the native save and somehow rerender the page or just invoke the functions, which I made responsible for setting the values in my urls? Data for the record is pulled on client-side, so I do not want to use
refreshApex. Already saw that
getRecordNotifyChange, which looks like exactly what I need, but I am trying to find a way to fire it only when the record is updated.