From what I understand of the update behavior in Plugin, is that when any change happen in data (of field setting), the update function should run. So if data is added, modified or deleted, this should run the update part again.
But it doesn’t seem to work. Do I need to do something for that in the script?
My understanding is that it runs whenever a property in the property editor changes - not data in the DB if that’s what you mean. (Unfortunately, the use of the term “field” in the function’s documentation is inconsistent and confusing in that context.)
Yes I agree. So except to create a workflow to force a refresh, there’s no way to have a plugin automatically update if a DB event happen (like native bubble thing)?
I don’t think so, but perhaps someone else will chime in with a definitive answer.
You can add an event listener but that’s not exactly the same as triggering the entire update function automatically.
Anytime one of your element data input fields is updated via associated/linked front end or backend changes , the update function runs from the start.