Slider freezes after adding and removing items
When I manipulate with items (add or remove items many times) through state (I have own state for items) and meanwhile user click on next arrow, carousel freezes and it's not possible to move slider back or forward. I load next items through ajax.
I am facing the same issue. If the browser is kept open for long and if we get back to the same page, the slider freezes and its not possible to move between slides
For me, this happens when clicking on the next/prev arrow while another slide transition is running. I am not changing the contents of the slider.
What I found out is, the slider freezing is caused by this.state.animation on InnerSlider not being set back to false. However, I didn't found a fix for this yet. To me it looks like some kind of concurrency problem where e.g. the callback that should set animating to false is fired to early.
Thanks for digging into the issue. I will try to fix it today
On Thu, Oct 15, 2015 at 3:14 PM, Daniel Büchele [email protected] wrote:
What I found out is. The slider freezing is caused by this.state.animation on InnerSlider not being set back to false. However, I didn't found a fix for this yet. To me it looks like some kind of concurrency problem where e.g. the callback that should set animating to false is fired to early.
— Reply to this email directly or view it on GitHub https://github.com/akiran/react-slick/issues/140#issuecomment-148336112.
Perfect! Thank you guys.
Added fix proposed by @danielbuechele and released 0.8.1 @Pave91 @nutank Please check if it solves your problem.
I think you need to also remove the lock from this part (https://github.com/digitalegarage/react-slick/commit/a5fe2a75bf8535157cc901bbc148932288b71460) Also I am wondering what the lock was for in the first place and if it makes sense to remove it completely or would something break if it is removed?
SItuation is better now, but still in some situations carousel freezes. I'm wondering the same thing like @danielbuechele .
setting a state prop on beforeSlider event, that dont have nothing to do with the slider. also frezee it.
this appears to not be fixed as of 0.9.2