Closed
Description
- I have searched the issues of this repository and believe that this is not a duplicate.
Reproduction link
Steps to reproduce
- Scroll a little till the Affix becomes sticky.
- Click on Toggle button.
- First Affix is removed and second Affix gets mounted.
- Warning seen on console - 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 the componentWillUnmount method.
- Note: This is particularly observed in Chrome - Emulation Mode (Responsive Viewport Mode)
What is expected?
Warning should not appear
What is actually happening?
Memory leak warning is seen
Environment | Info |
---|---|
antd | 3.26.13 |
React | 16.3 |
System | Windows 10 |
Browser | Chrome - Emulation Mode (Responsive Viewport Mode) |