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
It seems query diff is not working in some cases when original query use variables.
I have an article container component which retrieve its data and its source from two distinct root queries.
The first time the component is mounted, everything works (the full query is sent to the server). But the second time with a different article and the same source the diff is not working.
Hmm, this requires additional logic to manipulate the AST to remove variable definitions, scan for what variables are being used, etc.
Would it maybe be better to just get rid of this query diffing feature? Then the only difference is you just put it in as two separate queries if you want them to be cached independently. What do you think? Do you feel like you get a lot of value out of this feature?
I split it in two queries, this is a safe workaround, you're right.
But as it return an unexpected result, i think this is a good idea to disable query diffing for theses queries.
It seems query diff is not working in some cases when original query use variables.
I have an article container component which retrieve its data and its source from two distinct root queries.
The first time the component is mounted, everything works (the full query is sent to the server). But the second time with a different article and the same source the diff is not working.
Component connection :
Generated diff query for the second article :
I get from the server :
The text was updated successfully, but these errors were encountered: