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 this warning on the Chrome browser when I delete the component by changing the state :
Warning: Can't perform a React state update on an unmounted component . This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function. in SwipeableWrapper (at TinderCards.js:36) in div (at TinderCards.js:35)
I come to modify the state and the status property and then I filter the state in the map that generates my cards.
I guess it's when I call the onUnliked or onLiked function that's gone props in Swipeable and this one gets deleted.
If someone can give me some guidance on how to change that, I guess drag and drop is a bit special, thanks in advance.
The text was updated successfully, but these errors were encountered:
Hello,
I have this warning on the Chrome browser when I delete the component by changing the state :
Warning: Can't perform a React state update on an unmounted component . This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function. in SwipeableWrapper (at TinderCards.js:36) in div (at TinderCards.js:35)
App.js
TinderCards.js
I come to modify the state and the status property and then I filter the state in the map that generates my cards.
I guess it's when I call the onUnliked or onLiked function that's gone props in Swipeable and this one gets deleted.
If someone can give me some guidance on how to change that, I guess drag and drop is a bit special, thanks in advance.
The text was updated successfully, but these errors were encountered: