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
Hi all! I am working with library in a Next.js project using Image component from next/image, but I see that the animation break the first time that the library load the images.
I see that in the library exist this code to break the animation
resizeWindow = (setTrackStyle = true) => {
const isTrackMounted = Boolean(this.track && this.track.node);
// prevent warning: setting state on unmounted component (server side rendering)
if (!isTrackMounted) return;
let spec = {
listRef: this.list,
trackRef: this.track,
...this.props,
...this.state
};
this.updateState(spec, setTrackStyle, () => {
if (this.props.autoplay) this.autoPlay("update");
else this.pause("paused");
});
// animating state should be cleared while resizing, otherwise autoplay stops working
this.setState({
animating: false <----- HERE
});
clearTimeout(this.animationEndCallback);
delete this.animationEndCallback;
};
Are there some way to avoid this?
The text was updated successfully, but these errors were encountered:
Hi all! I am working with library in a Next.js project using Image component from
next/image
, but I see that the animation break the first time that the library load the images.I see that in the library exist this code to break the animation
Are there some way to avoid this?
The text was updated successfully, but these errors were encountered: