mirror of
https://github.com/bendtherules/react-fiber-traverse.git
synced 2026-08-18 13:52:36 +00:00
build - Support iterating over generators
This commit is contained in:
+1
-1
@@ -89,7 +89,7 @@ function getRootFiberNodeFromDOM(startElement?: Element): FiberNode | null {
|
||||
}
|
||||
|
||||
let returnFiberNode = null;
|
||||
for (const childNode of startElement.children) {
|
||||
for (const childNode of [].slice.call(startElement.children)) {
|
||||
returnFiberNode = getRootFiberNodeFromDOM(childNode);
|
||||
if (returnFiberNode !== null) {
|
||||
return returnFiberNode;
|
||||
|
||||
Reference in New Issue
Block a user