Skip to content

Commit 9850be4

Browse files
authored
fix: React state updated after component unmounted (#240)
* fix: React state updated after component unmounted close ant-design/ant-design#29328 * revert father version
1 parent ec9ad5a commit 9850be4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Popup/useVisibleStatus.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export default (
6262
}
6363

6464
if (status) {
65+
cancelRaf();
6566
rafRef.current = raf(async () => {
6667
const index = StatusQueue.indexOf(status);
6768
const nextStatus = StatusQueue[index + 1];

0 commit comments

Comments
 (0)