Description
First of all thanks for the great project. I use graphql a lot and am trying to look in the deeper functionalities.
I have a large entity that I query in multiple places in my app. I realized I could query only parts of it by using directives.
In one of my components, I have to query within a useEffect
and thus opted for the lazy query.
I then added directives as follows:
When loggin on my app, I get an infinite loop that keep triggering the lazyQuery even though the directive arguments seem to be set.
HOWEVER, As soon as I add the arguments as follows, it fixes the infinite loop.
Is there something in the behaviour of Graphql that I am missing? is this an expected behaviour?
It seems quite odd to me that passing the variables in the query even though they were visible in teh query before and being set with a default value would give any different result.