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 duplicate requests in picsur-img.component #38

Merged
merged 1 commit into from
Mar 15, 2023

Conversation

kaiiiz
Copy link
Contributor

@kaiiiz kaiiiz commented Mar 12, 2023

This is caused by an improper initial state (Loading) that triggers onInview multiple times while images are still in the loading state.

Before the fix, the network logs in My Images view:

image

After the fix:

image

This is caused by improper initial state (Loading) that triggers `onInview` multiple times.
@CaramelFur
Copy link
Owner

Oh thank you, that indeed looks much better. I'll take a closer look later and probably merge it.

@CaramelFur CaramelFur merged commit c65b7ca into CaramelFur:master Mar 15, 2023
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