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

Endless loading images when swiping #681

Open
1 task done
designtology opened this issue Sep 30, 2023 · 0 comments
Open
1 task done

Endless loading images when swiping #681

designtology opened this issue Sep 30, 2023 · 0 comments

Comments

@designtology
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

The image gallery is doing a good job by loading only three images at a time, when not swiping through. However, the images should not load each time from the server even it was loaded before.

Current Behavior

It seems the images being out of the three-images-at-one range are unloaded and loaded again after being in range when swiping. This causes a potential endless loading from the server as long as the user is swiping back and forth

Steps to Reproduce (for bugs)

Just load a few images in your gallery and watch your network tab load the images over and over again.

Context

I am using the React 18 fix version:
https://www.npmjs.com/package/react-swipeable-views-react-18-fix

Not sure about the original version tho

Your Environment

Tech Version
react-swipeable-views react-swipeable-views-react-18-fix
React v18
platform nodejs
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

No branches or pull requests

1 participant