I am displaying a list of items in the web browserthat is initially requested via an AJAX call from the server and then updated by listening to an autobahnjs subscription (which receives change notifications).
Some of my items (a list of job, that sometimes are completed in a few hundred ms, sometimes only after a long time), might be updated at the time the web page is loaded. This is very likely, because the job list is displayed immediatedly after a new job is submitted.
My problem is, that I don't know when the subscription is active, so sometimes changes to my item list occur after I have received the AJAX response but before the subscription becomes active (which results in items never seeing the update).
Starting the subscription ahead of the AJAX call will only partially solve the problem, because now the item list could overwrite a change that occurred earlier via a subscription. Doing so would also require to find out, when the subscription becomes active.