We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5fde6d commit b81463fCopy full SHA for b81463f
src/react-sortable-tree.js
@@ -155,10 +155,12 @@ class ReactSortableTree extends Component {
155
const { instanceProps } = prevState;
156
const newState = {};
157
158
+ const isTreeDataEqual = isEqual(instanceProps.treeData, nextProps.treeData);
159
+
160
// make sure we have the most recent version of treeData
161
instanceProps.treeData = nextProps.treeData;
162
- if (!isEqual(instanceProps.treeData, nextProps.treeData)) {
163
+ if (!isTreeDataEqual) {
164
if (instanceProps.ignoreOneTreeUpdate) {
165
instanceProps.ignoreOneTreeUpdate = false;
166
} else {
0 commit comments