mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[REF] component: slightly simplify code logic
This commit is contained in:
committed by
Sam Degueldre
parent
859748aed9
commit
3e4ebb6378
@@ -101,16 +101,11 @@ export class Fiber {
|
|||||||
while (current) {
|
while (current) {
|
||||||
if (current.fiber) {
|
if (current.fiber) {
|
||||||
let root = current.fiber.root!;
|
let root = current.fiber.root!;
|
||||||
if (root.counter) {
|
if (root.counter === 0 && prev.parentKey! in current.fiber.childrenMap) {
|
||||||
|
current = root.node;
|
||||||
|
} else {
|
||||||
scheduler.delayedRenders.push(this);
|
scheduler.delayedRenders.push(this);
|
||||||
return;
|
return;
|
||||||
} else {
|
|
||||||
if (!(prev.parentKey! in current.fiber.childrenMap)) {
|
|
||||||
// is dead. but we keep the render around just in case
|
|
||||||
scheduler.delayedRenders.push(this);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
current = root.node;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
prev = current;
|
prev = current;
|
||||||
|
|||||||
Reference in New Issue
Block a user