Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

Image not loading on launch when React.StrictMode is enabled. #672

Closed
dmrkosterit opened this issue Oct 4, 2022 · 6 comments
Closed

Image not loading on launch when React.StrictMode is enabled. #672

dmrkosterit opened this issue Oct 4, 2022 · 6 comments

Comments

@dmrkosterit
Copy link

dmrkosterit commented Oct 4, 2022

When the app is wrapped around in StrictMode like
root.render(
<React.StrictMode>
< App />
</React.StrictMode>
);

The lightbox gets stuck on the spinner until the image changes or the zoom-in button clicks.

@quangtho2910
Copy link

I got the same problem too!

@MrScX
Copy link

MrScX commented Oct 14, 2022

Same here. Any updates on this?

@jelizarovas
Copy link

Same here. Was wrapping my head around why it wouldn't load.

Lightbox itself loads, presing next or forward loads the images, zooming in also shows the images. Just initially stuck on loop.

@theutkarshsoni
Copy link

theutkarshsoni commented Oct 23, 2022

Same problem. Any updates?

I used the below temp hack and it worked for me.

#589 (comment)

Thanks @ihappycoder

@BozidarSiljanoski
Copy link

This is connected to reactjs/react-modal#808 this issue on react-modal

@mleister97
Copy link

Seems like the lib is no longer maintained. Really sad...

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

No branches or pull requests

8 participants