react-awesome-lightbox
react-awesome-lightbox copied to clipboard
Gets stuck in loading spinner for array of images
+1 Gets stuck on loading when I use "Next" and "Previous" option
Stuck in loading spinner if duplicate image exists
Stuck in loading spinner when images array has only one entry and "next" and "previous" arrows are used
Thanks for the issue report. I am working on a fix. should be fixed in v3
Have you fixed it yet? There isn't new version since August
Used this trick:
const [key, setKey] = useState(false);
useEffect(() => { setTimeout(() => setKey(key + 1)); }, [isOpen]);
<Lightbox key={key}
a year later and issue still persists