Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master error mounted ged #1655

Merged
merged 1 commit into from
Nov 28, 2024
Merged

Master error mounted ged #1655

merged 1 commit into from
Nov 28, 2024

Conversation

ged-odoo
Copy link
Contributor

No description provided.

@ged-odoo ged-odoo force-pushed the master-error-mounted-ged branch 4 times, most recently from 77f2517 to bc63592 Compare November 28, 2024 10:24
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.
@ged-odoo ged-odoo force-pushed the master-error-mounted-ged branch from bc63592 to d112e19 Compare November 28, 2024 15:18
@jpp-odoo jpp-odoo merged commit 1c5b6f2 into master Nov 28, 2024
2 checks passed
@jpp-odoo jpp-odoo deleted the master-error-mounted-ged branch November 28, 2024 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants