React-id-swiper: Force update the swiper

Created on 6 Jun 2017  路  3Comments  路  Source: kidjp85/react-id-swiper

I am having a dynamic array of component to render in swiper, however, when adding the new component to the array, it does not shown correctly in the swiper, which function should I call to force update the swiper

Most helpful comment

Hi @thientran1707 , please add this to params rebuildOnUpdate : true and it should work fine

All 3 comments

Hi @thientran1707 , please add this to params rebuildOnUpdate : true and it should work fine

@kidjp85: Can swiper also just update when new slides were added? Otherwise other components fail to access the contents.

@kidjp85 Hello I import component using react-loadable, These Components will be child of Swiper. If direction: "horizontal" Swiper works well .

But set direction to vertical It can not works well

top and bottom have very large gap. How can I resolve it?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

trevans24 picture trevans24  路  6Comments

mehrdad517 picture mehrdad517  路  4Comments

ositaka picture ositaka  路  4Comments

Pixel-Daze picture Pixel-Daze  路  4Comments

Sallywa picture Sallywa  路  5Comments