mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fixed an Array type bug in Store
This commit is contained in:
@@ -234,7 +234,7 @@ export default class Store extends EventEmitter {
|
||||
debug('Re-order', `fiber ${id} children ${children.join(',')}`);
|
||||
|
||||
element = ((this._idToElement.get(id): any): Element);
|
||||
element.children = children;
|
||||
element.children = Array.from(children);
|
||||
|
||||
const prevWeight = element.weight;
|
||||
let childWeight = 0;
|
||||
|
||||
Reference in New Issue
Block a user