From 9b0588536367dcb2a94f84eceb14498e8733a702 Mon Sep 17 00:00:00 2001 From: Jason Chung Date: Mon, 27 May 2019 20:43:29 +0800 Subject: [PATCH] fix(Transfer): set state on an unmounted component (#16822) --- components/transfer/renderListBody.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/transfer/renderListBody.tsx b/components/transfer/renderListBody.tsx index 33983ef446..cfed6948c4 100644 --- a/components/transfer/renderListBody.tsx +++ b/components/transfer/renderListBody.tsx @@ -36,7 +36,7 @@ class ListBody extends React.Component { }); } - componentWillMount() { + componentWillUnmount() { raf.cancel(this.mountId); }