You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I press MyCustomButton, then onSlide is called with the correct index 1. The setIndex causes a rerender and it seems that the onSlideChange function is called again with the old initial index 0.
Is there a way to make this setup work or is this behavior by design?
Version: 4.0.4
The text was updated successfully, but these errors were encountered:
I want to call
goToSlide
using aref
to theAppIntroSlider
and I want to save the current index in a state. Consider the following example.If I press
MyCustomButton
, thenonSlide
is called with the correct index1
. ThesetIndex
causes a rerender and it seems that theonSlideChange
function is called again with the old initial index0
.Is there a way to make this setup work or is this behavior by design?
Version: 4.0.4
The text was updated successfully, but these errors were encountered: