after debugging, I found it may be update method in beforeUpdate hook caused this problem
because when an image has been loaded, it would be added into the freeList, and later be removed from ListenerQueue. but when component update and triggered directive beforeUpdate hook, it will check if image in the ListenerQueue, add it back to ListenerQueue, and eventually cause image reloaded.
But I found it is intentionally at this commit, as I did't look much deeper into this repo, so I'm not sure whether these lines should be reverted
Hi, thank you for your great lib!
Problem
I recently encountered a weird situation that image immediately reloads after switch the my carousel component
(maybe) bug causes
I used directive in my component, here is some code snippet
after debugging, I found it may be update method in beforeUpdate hook caused this problem because when an image has been loaded, it would be added into the freeList, and later be removed from ListenerQueue. but when component update and triggered directive beforeUpdate hook, it will check if image in the ListenerQueue, add it back to ListenerQueue, and eventually cause image reloaded.
But I found it is intentionally at this commit, as I did't look much deeper into this repo, so I'm not sure whether these lines should be reverted