You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a problem currently in our project - valueChanges does not trigger anymore when we fetch the same object type in another query.
The first query is as follows:
query GetBreadInfo {
bread {
uid
name
}
}
After some time we make another query on another object, but in the subfields we can also get the Bread, like this:
query GetRestaurantInfo {
restaurant {
uid
name
food {
uid
name
}
}
}
In the "food" subquery we receive objects of type Bread.
At this step we want to fetch the rest of the bread (initially we only took 5) and we try a manual fetchMore() on the initial queryRef.
When fetching again on the first query, the valueChanges does not trigger anymore without reinitializing the whole subscription.
On the network I can observe that the new data about the bread is present.
The merge function merges.
Cache is updated with new items of type bread. But valueChanges stays silent.
No duplicate values are present in cache
Debugging i found out that the initial queryRef is still alive and well.
Thank you for any kind of suggestion or advice about this!
Link to Reproduction
no reproduction :(
Reproduction Steps
Steps included in main message.
@apollo/client version
3.9.11
The text was updated successfully, but these errors were encountered:
At which version(s) do you observe this change? Thanks for including the version of Apollo Client in your issue, but it looks like you're using apollo-angular and both valueChanges and queryRef are Apollo Angular APIs. If you have more info that points to a particular Apollo Client version that broke expected behavior, I'd be happy to look into it more. Thanks!
Issue Description
Hi,
We have a problem currently in our project - valueChanges does not trigger anymore when we fetch the same object type in another query.
The first query is as follows:
After some time we make another query on another object, but in the subfields we can also get the Bread, like this:
In the "food" subquery we receive objects of type Bread.
At this step we want to fetch the rest of the bread (initially we only took 5) and we try a manual fetchMore() on the initial queryRef.
When fetching again on the first query, the valueChanges does not trigger anymore without reinitializing the whole subscription.
Thank you for any kind of suggestion or advice about this!
Link to Reproduction
no reproduction :(
Reproduction Steps
Steps included in main message.
@apollo/client
version3.9.11
The text was updated successfully, but these errors were encountered: