mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Prettier
This commit is contained in:
@@ -799,10 +799,12 @@ export default class Store extends EventEmitter {
|
||||
}
|
||||
// This check is more expensive so it's gated
|
||||
if (__DEV__) {
|
||||
if (nextChildren.find(childID => {
|
||||
const childElement = this._idToElement.get(childID);
|
||||
return childElement == null || childElement.parentID !== id;
|
||||
}) != null) {
|
||||
if (
|
||||
nextChildren.find(childID => {
|
||||
const childElement = this._idToElement.get(childID);
|
||||
return childElement == null || childElement.parentID !== id;
|
||||
}) != null
|
||||
) {
|
||||
console.error(
|
||||
`Children cannot be added or removed during a reorder operation.`
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user