You need to set up a listener for refreshes to a context entity. The update
function doesn't get called when the entity gets refreshed - only when it actually changes.
Take a look at the function in the widget boilerplate called _resetSubscriptions
. The objectHandle
is what you need for microflow refreshes.
It's like Eric says, there is a distinction between what is added to subscriptions. By coincidence, I have checked you widget last week for a client. I'll have a look at it as well, see where the behaviour comes from. If you add a subscription, the callback from that function usually calls _updateRendering
I have created a new version of the ShowByCondition widget based on your answers. It is submitted for approval. In the mean time, you can find it here: https://github.com/remcos/ShowByCondition