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

Images don't load with Lazy Load activated #4463

Closed
danchistyakov opened this issue Apr 21, 2021 · 1 comment
Closed

Images don't load with Lazy Load activated #4463

danchistyakov opened this issue Apr 21, 2021 · 1 comment
Labels

Comments

@danchistyakov
Copy link

  • Swiper Version: 6.5.7
  • Platform/Target and Browser Versions: Windows, ANDROID, CHROME, ETC.

What You Did

When I'm using lazy load and hooks such as useState and the first definition is not a final array with images, I'm getting this bug. But when I create just a const variable with array of images and don't redefine it everything works ok.

Bug: images are not loading until I touch or swipe slider.

https://codesandbox.io/s/swiper-react-fork-forked-ubd1t

Expected Behavior

Images must be loaded

Actual Behavior

Images are not loading until I touch or swipe slider.

@DwieDima
Copy link

This seems also be an issue with angular, where you have to touch the swiper to see images

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants