-
Notifications
You must be signed in to change notification settings - Fork 2.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
deep assign if nested fragment #629
deep assign if nested fragment #629
Conversation
@edvinerikson: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Meteor Contributor Agreement here: https://contribute.meteor.com/ |
Also I have no idea how to fix the TS errors |
e9ca3fa
to
195c1ed
Compare
195c1ed
to
cf69fdb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@edvinerikson Thanks for the PR! There are just a couple of things to fix, and a rebase necessary before we can consider merging it.
@@ -2,7 +2,7 @@ import isArray = require('lodash.isarray'); | |||
import isNull = require('lodash.isnull'); | |||
import isObject = require('lodash.isobject'); | |||
import has = require('lodash.has'); | |||
import assign = require('lodash.assign'); | |||
const deepAssign = require('deep-assign'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use import
here.
@@ -157,6 +157,84 @@ describe('reading from the store', () => { | |||
}); | |||
}); | |||
|
|||
it.only('runs a nested fragment with multiple fragments', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with it.only
you're running just this single test!
rootId: 'abcd', | ||
}); | ||
|
||
// The result of the query shouldn't contain __data_id fields |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this comment here?
Merging here: #669 |
#534 fix attempt
I am not sure it fixes all cases for this. However some guidance would be helpful since I'm not familiar with the codebase