Closed TimvdEijnden closed 1 year ago
The type TAsyncQuery was missing the context property
TAsyncQuery
type TAsyncQuery<T> = { cache?: boolean, context?: DefaultContext, clientId?: string, key?: string, query: TQuery<T>, variables?: TVariables<T>, }
Also when passing the context as a 4th argument to useAsyncQuery it would not be applied because it was only checking the options args?.[0]?.context now it also uses args?.[3] and clientId is the 3rd one so it should be args?.[2].
useAsyncQuery
args?.[0]?.context
args?.[3]
args?.[2]
The type
TAsyncQuery
was missing the context propertyAlso when passing the context as a 4th argument to
useAsyncQuery
it would not be applied because it was only checking the optionsargs?.[0]?.context
now it also usesargs?.[3]
and clientId is the 3rd one so it should beargs?.[2]
.