Replies: 1 comment
-
Please try using default "key" prop. It worked for me! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all!
Hopefully, you can help me with this .. I have searched everywhere on how to reload the Swiper and nothing...
I have an object with 2 sets of images
selectedImages: { **normal_images** : ['10442513_0.jpg', '10442513_1.jpg', '10442513_10.jpg', '10442513_100.jpg'] , **colored_images**: ['10442513_0_colored.jpg', '10442513_1_colored.jpg', '10442513_10_colored.jpg', '10442513_100_colored.jpg'] }
and this selectedImages object will change with a button in the parent component, replacing the previous images (from small images to big images).The problem i'm having is that when i change the selectedImages state with the new images, the Swiper still uses the previous one. I can't find a way to reload the component with the new set. I have tried with initialSlide setting it to "0" but is ignoring it.
My component:
Beta Was this translation helpful? Give feedback.
All reactions