Repository navigation
fix(model): make .changed() deep aware - #10851
Merged
Merged
Conversation
SimonSchick
force-pushed
the
fix/change-detection-nesting
branch
from
April 27, 2019 16:05
a514d10 to
94eb8d8
Compare
Codecov Report
@@ Coverage Diff @@
## master #10851 +/- ##
==========================================
+ Coverage 96.27% 96.27% +<.01%
==========================================
Files 94 94
Lines 9186 9190 +4
==========================================
+ Hits 8844 8848 +4
Misses 342 342
Continue to review full report at Codecov.
|
janmeier
approved these changes
Apr 29, 2019
sushantdhiman
approved these changes
Jul 6, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request check-list
Please make sure to review and check all of these items:
npm run testornpm run test-DIALECTpass with this change (including linting)?Description of change
Fixes #10848
@sushantdhiman the problem here is that this change would be in conflict with current behaviour, we could deep clone complex values values when storing the previous values, this probably has some performance implications tho.
Imo we should suggest to consumers that when they edit nested properties that they have to call
changed('key', true)manually.