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 have a scenario in which once all the cards are swiped api is called to increase the radius and get more cards. the array is updated and i can see new cards in the log but the render functions returns undefined and the cards are empty i have also tried swipRef?.current?.forceUpdate(); but thats doesn't work either. The only way to render these new cards is to reopen that screen and we are able to see the cards. Can some one please guide?
The text was updated successfully, but these errors were encountered:
@coyksdev i found the solution for it you have to give key e.g key={cardsArray.length} and then you also have to call the api to get more users with onSwipedAll={getUsers}
I have a scenario in which once all the cards are swiped api is called to increase the radius and get more cards. the array is updated and i can see new cards in the log but the render functions returns undefined and the cards are empty i have also tried swipRef?.current?.forceUpdate(); but thats doesn't work either. The only way to render these new cards is to reopen that screen and we are able to see the cards. Can some one please guide?
The text was updated successfully, but these errors were encountered: