Skip to content

Master wowl fix dam #1016

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

Closed
wants to merge 1 commit into from
Closed

Master wowl fix dam #1016

wants to merge 1 commit into from

Conversation

Polymorphe57
Copy link

No description provided.

@robodoo
Copy link

robodoo commented Aug 12, 2021

Before this commit, a loss of state was observed when "reloading" a view
by clicking quickly several times in the view switcher. This was due to
the fact that each click did modify the function "getLocalState" of the
current controller (in the sense used by the action service) despite
the fact that the corresponding view could not be mounted and thus be
able to communicate its state (the exportLocalState callback is only
registered when the view is mounted via a useEffect). Here we correctly
wait the view to be mounted to modify getLocalState. We do the same
for getGlobalState for consistency even if a similar problem was not
observable in that case (the way in which global states passed to views
are computed is different).
@Polymorphe57
Copy link
Author

robodoo r+

@robodoo
Copy link

robodoo commented Aug 13, 2021

Staging failed: ci/runbot (view more at http://runbot.odoo.com/runbot/build/9397435)

@Polymorphe57
Copy link
Author

robodoo retry

@robodoo robodoo closed this Aug 13, 2021
@Polymorphe57 Polymorphe57 deleted the master-wowl-fix-dam branch August 31, 2021 15:03
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