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
Hi everybody, the lib is pretty amazing but there is a fundamental issue, removing cards on swipe just doesn't work, it causes all kinds of issues, like active card jumping two places, or jumping one place right when card drag starts, my current version is 2.0.17 so dynamic list should be working as per this PR : #87
<Swiper ref={swiper}
cards={root.userStore.users}
renderCard={(user) => {
return (
<TinderScrollable user={user}></TinderScrollable>
)}}
onSwipedAll={() => { addUsers() )}} //Adding users at the end of the deck works
cardIndex={root.userStore.cardIndex}
stackSize= {2} verticalSwipe={false}
onSwipedRight={(cardIndex) => {
console.log('Right, index swiped', cardIndex);
root.userStore.setCardIndex(cardIndex);
onLiked();
}}
>
</Swiper>
const onLiked = async () =>
{
let cardIndex = root.userStore.cardIndex;
let toLikeUser = root.userStore.users[cardIndex];
await root.userStore.liked(toLikeUser,0,true);
root.userStore.removeUserFromUsers(toLikeUser.id);
};
Removing swiped users or users that have been blocked from the deck would be ideal but right not its pretty glitchy and just doesnt work, is there a way to remove cards from the deck WITHOUT re-rendering the deck each time.
The text was updated successfully, but these errors were encountered:
Hi everybody, the lib is pretty amazing but there is a fundamental issue, removing cards on swipe just doesn't work, it causes all kinds of issues, like active card jumping two places, or jumping one place right when card drag starts, my current version is 2.0.17 so dynamic list should be working as per this PR : #87
Removing swiped users or users that have been blocked from the deck would be ideal but right not its pretty glitchy and just doesnt work, is there a way to remove cards from the deck WITHOUT re-rendering the deck each time.
The text was updated successfully, but these errors were encountered: