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

fix(core): correctly await promises called before init #734

Merged
merged 1 commit into from
May 3, 2024

Conversation

kwalker3690
Copy link

Summary

We've observed that the SR plugin is not correctly awaited when added before the client is initialized. This is because the SR plugin performs some async behavior in setup, and the client timeline was not awaiting on the .promise of the AmplitudeReturn of client.add.

See the unit test in this PR for a good representation of the issue - I confirmed that this test fails without this fix.

Checklist

  • Does your PR title have the correct title format?
  • Does your PR have a breaking change?: no

Copy link
Contributor

@justin-fiedler justin-fiedler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @kwalker3690. LGTM

@kwalker3690 kwalker3690 merged commit db5d484 into main May 3, 2024
3 checks passed
@kwalker3690 kwalker3690 deleted the kwallach/add-timeline branch May 3, 2024 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants