deanmcpherson / deanmcpherson/react-native-sortable-listview

mounting issue

Open
#157 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
909
Forks
225
PR merge metrics
No merged PRs in 30d

Description

When dragging a component, I noticed that the component being dragged executes the `componentWillMount` method upon drag start. I believe that this would be a bug. The component shouldn't have to remount just to be dragged.

In my case, I have a component that does some heavy processing upon being mounted, therefore, when I try to sort components, there is some huge lag between pressing and dragging the selected component.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the drag behavior described in the issue and trace the component lifecycle during drag start. Done means dragging does not trigger componentWillMount or an unnecessary remount, avoiding the reported lag for components with heavy mount processing.

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.