Take a look at the onNavigation event documented here. This event is fired after each page navigation, so your widget could be configured to listen for that event and respond accordingly.
We encountered the same challenge and used "onNavigation" event (as Eric mentions), and it works.
this.connect(this.mxform,
"onNavigation",
function(){
var formObject=this.mxform.getContext()&&this.mxform.getContext().getTrackObject();
....
}
);
Hello Matt,
I don't think there is an easy way to force a widget's update function outside of triggering it via updating the containing entity.
If this is not your widget I would suggest adding the widget on the page which would mean it gets rebuilt when you load a new page.
If this is your widget you can add event listeners for your functions, you could even look for DOM changes (using something like https://dom.spec.whatwg.org/#interface-mutationobserver)
Hope this helps