Closed oscb closed 5 months ago
Latest commit: 37282e5d3b004ffde4ecc0617b17da0bd178fa49
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Fixes the Classic Destinations buffering to properly buffer events while not loaded
Fixed
shouldBuffer
check as the starting state changed fromfalse
toundefined
for ready/initialized. Hence events were bypassing buffer all the time.Changed the behaviour of
scheduleFlush
as previously it was being called after the timeout and ignoring if the plugin had finished initializing. The retry would work properly if the plugin throws an error but Bing/FB don't hence it was marking those events as sent.onReady
andonInitialized
instead of retrying at intervals.[x] I've included a changeset (psst. run
yarn changeset
. Read about changesets here).