-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
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(mergeData): skip recursive call if values are identical #8967
Conversation
I don't know what scenario causes this, but shouldn't be possible to reproduce with const a = { a: 'a' }
const b = { a }
const c = { a }
// making the code call mergeData(b, c) somewhere |
Yeah, but I don't know where to put |
It's worth checking what the actual source of the problem is. There could be another problem somewhere else. That being said, the change is a good idea IMO |
There's a similar issue #6190, but that's trying to merge two different vue objects so I don't think this patch will fix it unless it's getting hung up on John thinks this one has something do do with component reuse, because it only happens when you leave the page for another one. But yeah this does fix our particular problem, and probably has a small performance boost too so there's no reason not to include it. |
Any plans on merging this? |
@KaelWD Hope this will be merged in the up coming sprint. |
Hi! |
What kind of change does this PR introduce? (check at least one)
Does this PR introduce a breaking change? (check one)
If yes, please describe the impact and migration path for existing applications:
The PR fulfills these requirements:
dev
branch for v2.x (or to a previous version branch), not themaster
branchfix #xxx[,#xxx]
, where "xxx" is the issue number)Other information:
Fixes vuetifyjs/vuetify#5633
I've been unable to reproduce this in isolation, but have run into it several times in the past. This check should also reduce unnecessary calls to
mergeData
, I noticed thousands of instances of identical objects being merged that didn't cause errors.