My ViewModel has bindable properties, as I think it should, so I can bind values from surrounding view/view-model to it (ex: <paging page-number.bind="pageNumber"></paging>). So dto belongs to surrounding view, it is not view-model of component.
But observable/bindable topic does not address the question? Is there any way not to use setTimeout and to trigger pageNumberChanged(newValue, oldValue) method?
But, this is still a bit off the topic. My questions are:
Is there any deterministic way to await for binding-update to happen, instead of setTimeout and random number of milliseconds? I do believe that this would be same for @observable and @bindable properties, right?
Why is pageNumberChanged not triggered at all (synchronously or asynchronously)?
Note: As I said, dto is not internal to component’s VM, it’s data from wrapping custom element. In another example from Stackoverflow from Fred Kleuver, it was named bindingContext.