-
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
Merging array in DeepMerger #11704
Comments
Hey @hartantothio 👋 I'm a bit unclear what you're looking for here. Are you seeing issues with |
Hi @jerelmiller -- sorry about that. Hopefully the following is helpful. I have a GQL query using the Example query: fragment ObjectFragment on Object {
id
randomKey {
someData
}
}
fragment ObjectSlowFields on Object {
id
slowField
}
query TestQuery {
object {
...ObjectFragment
...ObjectSlowFields @defer
}
} Initially, the returned results might looked like this:
However, on subsequent fetch, if the server returned an |
This sounds like it's related to the failing test in #11374 which I had started investigating. Will take a closer look today. |
Issue Description
I'm looking at this line and I think it's a problem when I have the following data for
source
andtarget
:My expectation is that the data will be replaced with
source
, which is the most recent data. But in this case, becauseObject.keys([])
returns an empty array, it will returnstarget
instead.Link to Reproduction
n/a
Reproduction Steps
No response
@apollo/client
version3.9.5
The text was updated successfully, but these errors were encountered: