meliorence / meliorence/react-native-image-gallery
Warning: Can't call setState (or forceUpdate) on an unmounted component
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 717
- Forks
- 298
- PR merge metrics
- No merged PRs in 30d
Description
Getting this warning on RN 0.55.3 while paging through an image list a tad fast.
The warning goes further with:
... 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 ViewTransformer (at index.js:178)
in TransformableImage (created by CellRenderer)
in RCTView (at View.js:60)
in View (at VirtualizedList.js:1664)
in CellRenderer (at VirtualizedList.js:670)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at index.js:178 in ViewTransformer and reproduce the warning by paging quickly through the image list on React Native 0.55.3. Trace the component lifecycle around TransformableImage and determine what remains active after unmounting. Done means the warning no longer appears during rapid paging.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react-native
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100