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

feat: allow multiple loads #75

Merged
merged 1 commit into from
May 25, 2022
Merged

feat: allow multiple loads #75

merged 1 commit into from
May 25, 2022

Conversation

sk-
Copy link
Contributor

@sk- sk- commented May 25, 2022

In the context of Shopify we may end up loading the file multiple times, so in order to prevent the events being reported multime times, we add a check to the library to ensure the library is loaded only once per page.

In the context of Shopify we may end up loading the file multiple times, so in order to prevent the events being reported multime times, we add a check to the library to ensure the library is loaded only once per page.
@sk- sk- requested a review from PabloReszczynski May 25, 2022 19:28
@PabloReszczynski
Copy link
Collaborator

I think you are missing the part where loaded is set to true

@sk-
Copy link
Contributor Author

sk- commented May 25, 2022

I think you are missing the part where loaded is set to true

@PabloReszczynski It's there on line 284.

Copy link
Collaborator

@PabloReszczynski PabloReszczynski left a comment

Choose a reason for hiding this comment

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

lgtm

@sk- sk- merged commit 5120732 into main May 25, 2022
@sk- sk- deleted the feat/seba/allow_multiple_loads branch May 25, 2022 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants