We have a react SPA. First page that the user goes to, it seems the "adobe" object is available, but target.getJsonOffer() is not there yet. Eventually it is there and we can execute it but not unless we do some sort of timeout functionality or force the SPA to re-render.
Is there some sort of mechanism to knowing when the getJsonOffer, triggerView, etc. functions are available so we can start firing them?
Not 100% sure I'm following. I can't even exectue the getJsonOffers() function to use its asynchronous functionality. As you can see in the screenshot - adobeVailable() function checks for adobe.target and adobe.target.getJsonOffer. As you can see, even the 'target' property isn't there yet for me to execute, thus it would cause runtime errors if I tried to.