Navigation Menu

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

[Vue] correctly destroy vue entry components in widgetloader #19216

Merged
merged 1 commit into from May 15, 2022

Conversation

diosmosis
Copy link
Member

Description:

The code used to destroy existing content before it gets replaced in WidgetLoader did not destroy vue components, so effects like watches/computed properties might not be cleaned up properly when switching widgets. Fixed by this PR.

Not sure if this can go into 4.10, but it would be good for it to if possible.

CC @justinvelluppillai

Review

@diosmosis diosmosis added the Bug For errors / faults / flaws / inconsistencies etc. label May 14, 2022
@diosmosis diosmosis added this to the 4.10.0 milestone May 14, 2022
Copy link
Member

@sgiehl sgiehl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes imho look fine. I'll leave it up to @justinvelluppillai if this will go into 4.10. or not.

@peterhashair peterhashair merged commit d574ba7 into next_release May 15, 2022
@peterhashair peterhashair deleted the vue-widget-working-destroy branch May 15, 2022 21:24
justinvelluppillai added a commit that referenced this pull request May 16, 2022
* tweak QueryParameters type in index.d.ts to better match arbitrary object types (#19191)

* tweak QueryParameters type in index.d.ts to better match arbitrary object types

* make sure github action takes into account changes in CoreVue types

* add ability to use a deep watch in scope var watches in angularjs adapters (#19195)

* covert getPluginUmdChunks from private to protected (#19212)

* set default color value, when key not exist. (#18696)

* Update Sparkline.php

add addition setup

* Update Sparkline.php

update foreach to array_merge

* protected getPluginUmdChunks

update private to protect

* correctly destroy vue entry components in widgetloader (#19216)

* Release Matomo 4.10.0

Co-authored-by: dizzy <diosmosis@users.noreply.github.com>
Co-authored-by: Peter Zhang <peter@innocraft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants