updateQuery merging different data when changing query while fetchMore is not yet finished #2813
Hi, I've read #2499 and I don't know if it this issue I'm having is related or not.
I am having this issue where
How to reproduce the issue:
Sorry, I am currently unable to provide the repository to reproduce this. I will provide it later if it's necessary.
This is the code I've been using:
The text was updated successfully, but these errors were encountered:
I'm experiencing the same behaviour. When the variables for the query are changed while fetchMore is in flight, the results of "fetchMore" (for the old variables) will be merged with the results of the query with current variables.
Example: You have a list with 2 tabs (changing tabs will change the "category"-variable for the query). So fetchMore is in progess while having tab 1 selected (category 1). Now the users switches to tab 2 and later the fetchMore results for tab 1 will be appended to tab 2.
The updateQuery-Function should provide the "previosResults" for the initial variables so we can merge accordingly.