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

fix broken mergeLocaleMessage #1321

Merged
merged 1 commit into from
Jul 16, 2021
Merged

fix broken mergeLocaleMessage #1321

merged 1 commit into from
Jul 16, 2021

Conversation

phonezawphyo
Copy link
Contributor

@phonezawphyo phonezawphyo commented Jul 16, 2021

This is a fix to #1108

Changes in #1098 break mergeLocaleMessage because _vm will not be notified that messages has been updated, resulting in the behavior described in #1108.

I present this PR as a compromise.

Instead of doing a deep copy with an empty object, we do a shallow copy so that change events will be invoked correctly while improving the performance somewhat.

I don't think there is another workaround without doing substantial changes to core structure.

@kazupon kazupon added the Type: Bug Bug or Bug fixes label Jul 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: merged Type: Bug Bug or Bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants