dancormier / react-native-swipeout

iOS-style swipeout buttons behind component
MIT License
2.62k stars 649 forks source link

Warning: setState(...): Can only update a mounted or mounting component. This usually means you called setState() on an unmounted component. This is a no-op. Please check the code for the Swipeout component. #244

Open ultranana opened 6 years ago

ultranana commented 6 years ago

使用一个数组map出4-5个swipeout,在左划时出现了如上的warning。

akirasunny commented 6 years ago

map函数是在哪里调用的?能看看代码吗?

dysfunctional-apps commented 5 years ago

Having this issue also, i have a flatlist, and use a swipeout menu to reveal multiple buttons including a delete button, when I have remove my item from the list, the list updates, but a reference to the swipeout seems to persist

dysfunctional-apps commented 5 years ago

Having this issue also, i have a flatlist, and use a swipeout menu to reveal multiple buttons including a delete button, when I have remove my item from the list, the list updates, but a reference to the swipeout seems to persist

Sorted my issue out, I had set stuff up in the constructor which ended up causing issues due to closure