You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using medium-zoom in a server-rendered project, but window / document can only be accessed in client. The differences cause errors when I try to migrate to v1.x from v0.4.0.
If it won't be fixed, I think it is one of the breaking changes that should be listed.
The text was updated successfully, but these errors were encountered:
Bug description
In v0.4.0, we only try to access
window
/document
in the function scope, i.e. all related code is wraped in themediumZoom
function:medium-zoom/src/medium-zoom.js
Lines 29 to 39 in 8617c95
In v1.x, we access
window
/document
outside themediumZoom
function:medium-zoom/src/medium-zoom.js
Lines 104 to 111 in e1b85df
I'm using medium-zoom in a server-rendered project, but
window
/document
can only be accessed in client. The differences cause errors when I try to migrate to v1.x from v0.4.0.If it won't be fixed, I think it is one of the breaking changes that should be listed.
The text was updated successfully, but these errors were encountered: