There are two places in the code where topic.publish is used, one as shown above and the other as below.
In both the cases the topic.publish does not trigger on the first load of the page, where as on the second load of the page it works.
There are also issues on the order in which topic.publish is called, ideally the topic.publish in the postCreate has to be called before the topic.publish in the updateCommandModel. But it is not the case always.
We are using functions to listen to page change and then do something. For this we are using topic.subscribe and topic.publish in the following manner
There are two places in the code where topic.publish is used, one as shown above and the other as below.
In both the cases the topic.publish does not trigger on the first load of the page, where as on the second load of the page it works.
There are also issues on the order in which topic.publish is called, ideally the topic.publish in the postCreate has to be called before the topic.publish in the updateCommandModel. But it is not the case always.
Do you have a solution to the above issues ? Also could you provide documentation on updateCommandModel ?
Thanks
Mariam Reba