Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't perform a React state update on an unmounted component #112

Open
aakond opened this issue Jan 26, 2022 · 0 comments
Open

Can't perform a React state update on an unmounted component #112

aakond opened this issue Jan 26, 2022 · 0 comments

Comments

@aakond
Copy link

aakond commented Jan 26, 2022

Hi, thank you for creating this lightweight and easy for use library!

I want to use this solution in my project but I have faced with warning like this:

console.error
    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.
        at VTable (/…/node_modules/virtualizedtableforantd4/lib/vt.js:308:21)
        at table
        at div
        at div
        at /…/node_modules/rc-table/lib/Table.js:118:23
        at div
        at Table (/…/node_modules/rc-table/lib/Table.js:133:25)
        at div
        at div
        at Spin (/…/node_modules/antd/lib/spin/index.js:104:37)
        at div
        at InternalTable (/…/node_modules/antd/lib/table/Table.js:75:34)
        at div
        at MyComponent

This warning appears after running Jest test suits but there is no warning while running Webpack dev server. Could you please fix the bug? 🙏🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants