Skip to content

ImageLoader memory leak #2804

@retyui

Description

@retyui

Is there an existing issue for this?

  • I have searched the existing issues

Describe the issue

Open Chrome devtools, go to the Memory tab, take a heap snapshot (Detached elements)
you should see a lot of img instances that are not garbage collected.

Image

Expected behavior

zero Detached img

Steps to reproduce

  1. create app
  2. render 10 img
  3. unmount them
  4. take a heap snapshot (Detached elements)

Test case

https://snack.expo.dev/@retyui/imageloader-memory-leak

Additional comments

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions