-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Add test that shows a bug when merging deferred results for arrays. #11374
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
Conversation
that occurs with arrays in deferred queries
|
size-limit report 📦
|
|
Converting this to a draft since this contains a reproduction with a failing test. |
|
@phryneas Is this problem solved ? |
|
@uerbin It is not solved yet - this code path has been refactored heavily for Apollo Client 4.0 and we won't be able to fix this in time for 4.0, as this will need a lot of thorough testing. With Apollo Client 4.0, the whole defer-merging solution will be abstracted away from the Apollo Client core, so different defer algorithms can be swapped out based on the server implementation. That will allow us to iterate on fixing this much better than would currently be possible. |
|
Superceded by #12923 which adds these tests to each incremental format. |
This bug was brought to my attention by @fernando-apollo. We'll have to discuss how we can best fix this. I bet there are a few cases where this behaviour is really useful.
The bug showcased here is caused by this part of
mergeResult:apollo-client/src/core/QueryInfo.ts
Lines 375 to 383 in ae5091a
Checklist: