beyonk-group/svelte-carousel

Images cannot be updated dynamically

PaulMaly opened this issue · 6 comments

Actually this component and Siema have no idea that images were changed reactively. This causes errors and makes this component unuseful, unfortunately (((

Not sure what you mean - reactive images is a bit of an edge case. It's not unuseful, I've been using it for a year or so now without any issues.

For example, if your images comes from the server as array and user can press some “Update” or “Load more” button to get some new or more images. This won’t work with current implementation and will produce an error.

@antony Ok, how can I add a hook to reinitialize the carousel component right now? Seems it's fine but I don't know how can I force update Svelte component.

@PaulMaly did you figure this out? can I close it?

@antony Yep, I figured out that there's no way to update images dynamically with this component. So, I wrote my own.))) Thanks!