Skip to content
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.

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 the componentWillUnmount method. in ImageViewer #458

Open
gerfisher opened this issue Apr 11, 2021 · 2 comments

Comments

@gerfisher
Copy link

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 the componentWillUnmount method.
in ImageViewer

@crventra941
Copy link

I have the same issue!!

@bekatru
Copy link

bekatru commented Sep 8, 2021

I'll add some details here.
I am rendering <ImageViewer /> inside a modal window.

 <Modal
          visible={imageViewerModalVisible}
          animationType={"fade"}
          transparent={true}
        >
          <ImageViewer
            index={imageViewerIndex}
            enableImageZoom={true}
            backgroundColor={"rgba(0, 0, 0, .8)"}
            enableSwipeDown={true}
            onSwipeDown={() => setImageViewerModalVisible(null)}
            imageUrls={eventGallery.map((i) => ({ url: i }))}
          />
        </Modal>
        ```

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

No branches or pull requests

3 participants