getOffer result overwritten with default content | Community
Skip to main content
New Participant
July 6, 2021
Question

getOffer result overwritten with default content

  • July 6, 2021
  • 0 replies
  • 594 views

Hi guys

 

we have an issue where we two /delivery calls competing with each other and depending on which one finishes first, the wrong content is displayed.

1. the default initial target call

2. a getOffer call which is listening to the at-library-loaded event to trigger

 

If the initial target call goes through first, the offer from the second call is shown - OK

Should the initial call be finished after the getOffer call has finished and applyOffer been executed, it hides the offer content and shows the default content - BAD

 

Are we listening to the wrong event? Is there something like "all mboxes ready" event which we could listen to instead?

Or any proven approach that would work here?

 

Cheers

Björn

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.