mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
1c5b6f2573
The error recovery process is necessary, but is particularly subtle. An error may occur basically any time some user code is called, which may leave the internal owl state in an invalid situation. In this commit, we try to improve Owl behaviour when a crash occurs in a onMounted hook. Before this commit, it was possible for other component mounted hooks to be called even though the component was not mounted, or for willUnmount hooks to be called even though the component was mounted, but its onMounted hooks had not been called. All these situations need to be handled when we catch an error. In this commit, we try to clean more internal state in the error handling code, to make Owl more consistent.