-
Notifications
You must be signed in to change notification settings - Fork 455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] SfGallery glitching when redirecting from a page #2190
Comments
Adding setTimeout fixes the problem, what do you think of this fix?
yet the question remains - do we need to destroy Glide instance at all? |
@DavidGolodetsky Hi, could you please help me reproduce this behavior? I checked it in a few implementations without result. Maybe it is a question of the version of SFUI, you use. |
I'm using version ^0.11.0. From the code, it looks like nothing have changed there in this regard in v 12. I'll try to prepare a codepen for it |
Also, it seems to be related to this issue about Glide.js. Overall my impression is that the lib is unreliable and the project looks abandoned. Is there any chance to review this dependency? |
Couldn't reproduce either, maybe it's something on our side. I guess we can close it in such case |
Ok, thanks for checking. If it happens again, please let me know. |
Describe the bug
When I use the SfGalley component on a page and then redirect away from (inner routes) gallery is glitching for a split of a second and shows me a row of images that I have in it.
Additional context
I checked the code of the SfGallery component and it seems like it's caused by this part:
I wonder if we need it in the first place? Is there an actual memory leak without destroying glide instance?
The text was updated successfully, but these errors were encountered: