Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin.ready now returns correct promise #1541

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zikaari
Copy link
Contributor

@zikaari zikaari commented Aug 31, 2023

Previously Plugin.ready would simply return Promise.resolve() just so the "waterfall" like flow of analytics and other compoenents won't come hold up, potentially indefintely.

However, the recent architecture changes to ajs where destinations are loaded in lazy mode require ready to report their real readiness status since indefinite hold up is no longer a concern.

This change to Plugin.ready has been unanimously discussed across Pooya Jaferian, Oscar Bazaldua, Seth Silesky

Previously Plugin.ready would simply return Promise.resolve() just so the "waterfall"
like flow of analytics and other compoenents won't come hold up, potentially indefintely.

However, the recent architecture changes to ajs where destinations are loaded in lazy mode
require ready to report their real readiness status since indefinite hold up is no longer
a concern.

This change to Plugin.ready has been unanimously discussed across Pooya Jaferian, Oscar Bazaldua,
Seth Silesky
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants