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(web): prevent duplicate calls to time bucket endpoint #7563

Merged
merged 1 commit into from
Mar 1, 2024

Conversation

mertalev
Copy link
Contributor

@mertalev mertalev commented Mar 1, 2024

Description

On page load, it's possible for the asset store's init and the insersection handler to both try to load the same bucket. Checking for an existing cancel token prevents this and possibly other cases.

An earlier iteration also removed the loaders section in the asset store's init as the intersection handler also does the same thing. However, after testing it seems to make the page load a bit snappier compared to relying only on the intersection handler.

How Has This Been Tested?

Loaded timeline view with network dev tools and observed that the time bucket endpoint is only called once for a particular date.

@mertalev mertalev merged commit 8b02f18 into main Mar 1, 2024
25 of 26 checks passed
@mertalev mertalev deleted the fix/web-duplicate-time-bucket-call branch March 1, 2024 19:16
Copy link
Contributor

@jrasm91 jrasm91 left a comment

Choose a reason for hiding this comment

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

Ty!

alextran1502 added a commit that referenced this pull request Mar 5, 2024
alextran1502 added a commit that referenced this pull request Mar 5, 2024
…7644)

Revert "fix(web): prevent duplicate calls to time bucket endpoint (#7563)"

This reverts commit 8b02f18.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants