Skip to content

Warning: Can't perform a React state update on an unmounted Image component. #2062

Open
@steida

Description

@steida

The problem
RNfW performs a React state update on an unmounted Image component.

How to reproduce

Unfortunately, no matter what, I can't extract a failing example from my app.
But this error happens as far as I remember. It must be some race condition because it's very hard to predict when it happens. I understand it's no actionable without a failing example, but what else should I do?

Update: It's somehow dependent on the browser cache. When I reload the page with cmd-shift-r, it will never happen. When I reload the page with cmd-r, it happens sometimes.

<Image
  accessibilityLabel="Gravatar"
  style={t.avatar as ImageStyle}
  source={{ uri: src }}
/>

Screenshot 2021-06-23 at 0 52 58

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions