The problem is main image is updating immediately on a single click of the button. Thumbnails is updating on clicking the button twice. That is, thumbnails wants to re-render the component one more time to get updated. This one more re-rendering is tested by clicking some other button which is not relevant to this carousel. The some other button just changes the redux state to re-render the component.
What might be the issue?
Any leads on this issue facing the same behaviour @JagadishDillikumar
me too facing same issue. it will be fine if you could provide a force refresh option.
solved it putting key for Carousal
<Carousel
key={props.data.img[0]} >
me too facing same issue. it will be fine if you could provide a force refresh option.
solved it putting key for Carousal
<Carousel key={props.data.img[0]} >
Thanks, had similar issue and this fixed it.
I don't use Redux, but with a simple input file of various images, thumbs don't show corretly, it show the last one
I mean, I upload 1, and ok... The second is upload in the main image, but does not in thumbs, and so on...
me too facing same issue. it will be fine if you could provide a force refresh option.
solved it putting key for Carousal
<Carousel key={props.data.img[0]} >
I don't use Redux, but with a simple input file of various images, thumbs don't show corretly, it show the last one
I mean, I upload 1, and ok... The second is upload in the main image, but does not in thumbs, and so on...
Try @athuldevin solution, it worked for me. Just put a key in the Carousel:
<Carousel key={image}>
same here, solution to add key not working
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Most helpful comment
me too facing same issue. it will be fine if you could provide a force refresh option.
solved it putting key for Carousal
<Carousel key={props.data.img[0]} >