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
Ok so i have a query that should support cursor pagination.
I have 2 elements what use the same query.
But after adding the merge function inside the typePolicies, the queries will fetch infinitely.
This only happens because I have 2 elements on the page with this query.
Can someone please explain to me why this happens.
Because i'm lost for words.
@ivands Can you try putting your code into a runnable reproduction so we can provide concrete advice?
As a side note, you generally don't want to include limit or sort arguments in your keyArgs, though I can't say for sure if that's a contributing factor here. Here's some discussion of what arguments belong in keyArgs.
Same problem wtih infinitely fetch using offsetLimitPagination().
If I set keyArgs with one item, for example limit (but it doesn't suit me) it's works.
But if I set filter with many optins inside, I get infinitely fetch. And if I gen function instead array for keyArgs I also get nfinitely fetch.
What else is weird, I have 2 differents queries, one of them works all time, another get problems.
Ok so i have a query that should support cursor pagination.
I have 2 elements what use the same query.
But after adding the merge function inside the typePolicies, the queries will fetch infinitely.
This only happens because I have 2 elements on the page with this query.
Can someone please explain to me why this happens.
Because i'm lost for words.
Versions
I'm using version 3.3.19
The text was updated successfully, but these errors were encountered: