Skip to content
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

Not able to destroy slick-slider and re render it #761

Closed
rohitgoyal7 opened this issue May 17, 2017 · 7 comments
Closed

Not able to destroy slick-slider and re render it #761

rohitgoyal7 opened this issue May 17, 2017 · 7 comments

Comments

@rohitgoyal7
Copy link

Guidlines for posting new issue

  • Please replicate your issue with this jsfiddle and provide a link to it along with the issue description
@rohitgoyal7
Copy link
Author

I am using slick slider for dynamic images where user can add or delete images at run time, but its not working well.

@fdc-viktor-luft
Copy link

React Basics: simply supply a new key to the Slider... Does this solve your Problem?

@akiran akiran closed this as completed Aug 19, 2017
@brovkin
Copy link

brovkin commented Jan 28, 2021

React Basics: simply supply a new key to the Slider... Does this solve your Problem?

It's working! Thx @fdc-viktor-luft

@f3tusz
Copy link

f3tusz commented Jan 2, 2023

Hi @brovkin Can you provide code for this solution?

@hungdev
Copy link

hungdev commented Feb 2, 2023

i get same issue

@brovkin
Copy link

brovkin commented Feb 3, 2023

@f3tusz Hi!
I don't remember exactly (it was 2 years ago), but I just added key="{unique value}" to the slider and it worked, try it like that:

<Slider key="slider_2">
    ...
</Slider>.

@hungdev
Copy link

hungdev commented Feb 3, 2023

@brovkin thank you for your comment. I tried that solution yesterday, but it didn't work. Then now I changed to https://swiperjs.com/react

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants