-
Notifications
You must be signed in to change notification settings - Fork 706
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to show images being fetched in React.useEffect(). Static images work though. #766
Comments
You are passing to the ImageGallery a "non reactive" list, aka a normal variable. One way to update the gallery with fetched images, is to make
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Checklist before opening an issue
Lots of issues are opened that are unrelated to this package, please take a moment to ensure the issue is not on your end 馃檹.
Describe the bug
Hi all, I'm trying to modify the existing example in the repo (https://github.com/xiaolin/react-image-gallery#example)
What I try to do, is to fetch custom images and not have a static list in the component. The links to the images are in my backend.
When I load my page with the dynamic list fetchedImages and pass this variable as props, I only get the play button and the fullscreen button displayed from the gallery but no images
Image Gallery Version
What version of
react-image-gallery
are you using?"react-image-gallery": "^1.3.0",
**My Code **\
Expected behavior
Fetched images in the fetchedImages variable should be displayed
Screenshots
Dynamic images
Static images
Additional context\
These are my two different objects. They're the same from the properties but their value is different. I guess it's ok that way.
The text was updated successfully, but these errors were encountered: