Comments (3)
Looks like the issue is that the onload event handler of the zoom image isn't getting called. The component relies on this to get the image size for calculations. What I didn't account for, is that in SSR the image can load before the javascript does. Which means the onload event can be fired before my event handler is added.
I should have have the fix released later tonight.
from react-image-magnifiers.
I just released a fix, version 1.3.1. Aside from the problem you found, I also found and fixed a few potential issues that could have arose where the server side and client side versions of the DOM wouldn't match during hydration.
from react-image-magnifiers.
I updated the package and it's working with ssr now.
Thanks again for your hard work.
from react-image-magnifiers.
Related Issues (20)
- Sync images support HOT 1
- GlassMagnifier not appearing correctly (Gatsby) HOT 1
- Programatically control the magnifier
- Rotate images before use
- Cursor Style Not Change to Zoom-In When Image Displayed Asyncronously HOT 1
- Fallback imageSrc onError HOT 2
- ReactJS Version 17 Support
- Not able to show the magnifing image HOT 3
- Stop Side By Side render from having automatic style HOT 1
- Pinch to zoom
- Invalid prop `imageSrc` supplied to `GlassMagnifier`
- Unable to preload images
- react-image-magnifiers not installing in next.js
- Not working with png, webp HOT 2
- Can i use not fileUrl src?
- Update or Deprecate
- ReactJS Version 18 Support HOT 4
- Not Working Properly
- Your examples are a bit confusing
- Warning: Magnifier2: Support for defaultProps will be removed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-image-magnifiers.