Skip to content

Preact + antd creates memory leak #5001

@ferretwithaberet

Description

@ferretwithaberet
  • Check if updating to the latest Preact version resolves the issue

Describe the bug
Using Preact with the antd UI library causes a memory leak which, as far as I've tested, does not happen with React.

To Reproduce

  1. Make a new Vite project with Preact.
  2. Install antd.
  3. Import and use components from antd. I've personally tested using Button.

Repro: https://github.com/ferretwithaberet/preact-antd-memleak

Expected behavior
Should not cause memory leak.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions