@@ -13,25 +13,25 @@ export function useGraphQl(module: queryType, options: optionsType) {
1313 if ( key && key . length ) {
1414 vars = isSubscription
1515 ? {
16- onSubscriptionData : ( data ) => callback ( data ) ,
17- variables : { key } ,
18- }
16+ onSubscriptionData : ( data ) => callback ( data ) ,
17+ variables : { key } ,
18+ }
1919 : {
20- onCompleted : ( data ) => callback ( data ) ,
21- variables : { key } ,
22- } ;
20+ onCompleted : ( data ) => callback ( data ) ,
21+ variables : { key } ,
22+ } ;
2323 }
2424 if ( limits ) {
2525 const { limit, offset } = limits ;
2626 vars = isSubscription
2727 ? {
28- onSubscriptionData : ( data ) => callback ( data ) ,
29- variables : { offset, limit, ...varTmp } ,
30- }
28+ onSubscriptionData : ( data ) => callback ( data ) ,
29+ variables : { offset, limit, ...varTmp } ,
30+ }
3131 : {
32- onCompleted : ( data ) => callback ( data ) ,
33- variables : { offset, limit, ...varTmp } ,
34- } ;
32+ onCompleted : ( data ) => callback ( data ) ,
33+ variables : { offset, limit, ...varTmp } ,
34+ } ;
3535 }
3636
3737 /* eslint-disable react-hooks/rules-of-hooks */
@@ -46,6 +46,7 @@ export function useGraphQl(module: queryType, options: optionsType) {
4646
4747 const res = useMutation ( generator . getQuery ( ) , {
4848 ...vars ,
49+ ignoreResults : true ,
4950 skip : isTesting ,
5051 } ) ;
5152
0 commit comments