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
I'm using gesture method, code is pretty much the same as your gesture method code.
After a "valid" swipe, for a moment the second card comes up and the card on the top of the stack disappears, but then the entire stack reverts back to the original state.
Observations on debugging: The changeCardsOrder() seems to be working fine, as the data in the cards[] is modified correctly as seen upon debugging. The stack is being built (through setState) with the correct cards[] too. Yet, the screen shows the originally loaded stack after a sec.
Any suggestions on what might be going wrong? Maybe you came across something like this while developing. Can paste in the code if you want.
The text was updated successfully, but these errors were encountered:
pravaibh
changed the title
Gesture Method: Stack refreshing to the initial state, so the same card remains on top.
Gesture Method: Stack refreshing back to the initial state after a valid swipe; cards[] modifying correctly
Sep 18, 2018
Hi @lvaskuu,
I'm using gesture method, code is pretty much the same as your gesture method code.
After a "valid" swipe, for a moment the second card comes up and the card on the top of the stack disappears, but then the entire stack reverts back to the original state.
Observations on debugging: The changeCardsOrder() seems to be working fine, as the data in the cards[] is modified correctly as seen upon debugging. The stack is being built (through setState) with the correct cards[] too. Yet, the screen shows the originally loaded stack after a sec.
Any suggestions on what might be going wrong? Maybe you came across something like this while developing. Can paste in the code if you want.
The text was updated successfully, but these errors were encountered: