mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
f2b3ebd1ec
Whenever a rendering is completed, we need to reset the currentFiber to null to make sure all subsequent renderings will not be confused. However, the way it was done before this commit was wrong in a specific situation: we resetted the currentFiber to null in the patch method. The idea was that this method was called every time the component completes a rendering. But this is not true: it can happen that a component is unmounted and remounted without changes. Then the component will be patched, but if there is no change, it will not call recursively the patched methods of its children. So, we need to choose a better place to reset it to null. closes #454