I'm using eagle.js to do a slideshow and I contact an API with a setInterval to add slides progressively so I don't need to reset index of the slideshow
Here is a little option of the modified function findSlides to not reset the index
I use JS destructuring instead of simple parameter to let options the possibility to grow without carrying about index of parameter.
Also a better option (but breaking change) would be to not set a default value to the resetIndex but I don't take the shot 😆
Hello folks,
I'm using eagle.js to do a slideshow and I contact an API with a setInterval to add slides progressively so I don't need to reset index of the slideshow Here is a little option of the modified function
findSlides
to not reset the indexI use JS destructuring instead of simple parameter to let options the possibility to grow without carrying about index of parameter. Also a better option (but breaking change) would be to not set a default value to the resetIndex but I don't take the shot 😆
Happy holidays !