is there a flag to mark the node being processed, otherwise there may be infinite loop…
liu fei
11

Hey, thanks for the question. AFAIK, this algorithm doesn’t need any flags. Can you create a demo of an infinite loop, maybe on stackblitz, and send me the link? I’ll take a look.

Also, see this article for the algorithm specific to Fiber and the animation that shows how React walks the tree.