Skip to content
This repository was archived by the owner on Dec 18, 2025. It is now read-only.

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

@aakond

Description

@aakond

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? 🙏🏻

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions