mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[FIX] component: reset isRendered when reusing fiber
It is important to reset the isRendered flag to false to ensure that other (subsequent) simultaneous calls to render will be skipped, as the currentFiber is actually no yet (re-)rendered. Closes #483
This commit is contained in:
committed by
Géry Debongnie
parent
3c0f8ac76f
commit
58f6724194
@@ -98,6 +98,7 @@ export class Fiber {
|
||||
_reuseFiber(oldFiber: Fiber) {
|
||||
oldFiber.cancel(); // cancel children fibers
|
||||
oldFiber.isCompleted = false; // keep the root fiber alive
|
||||
oldFiber.isRendered = false; // the fiber has to be re-rendered
|
||||
if (oldFiber.child) {
|
||||
// remove relation to children
|
||||
oldFiber.child.parent = null;
|
||||
|
||||
Reference in New Issue
Block a user