Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(vue): Fix regression causing variables to not be reactive (#3605)

authored by

Yurk Sha and committed by
GitHub
d07602d2 bf01d6b4

+5 -3
+1 -1
packages/vue-urql/src/useQuery.ts
··· 75 75 * documentation on the `pause` option. 76 76 */ 77 77 pause?: MaybeRef<boolean>; 78 - } & MaybeRefObj<GraphQLRequestParams<Data, Variables>>; 78 + } & MaybeRefObj<GraphQLRequestParams<Data, MaybeRefObj<Variables>>>; 79 79 80 80 /** State of the current query, your {@link useQuery} function is executing. 81 81 *
+1 -1
packages/vue-urql/src/useSubscription.ts
··· 58 58 * ``` 59 59 */ 60 60 context?: MaybeRef<Partial<OperationContext>>; 61 - } & MaybeRefObj<GraphQLRequestParams<Data, Variables>>; 61 + } & MaybeRefObj<GraphQLRequestParams<Data, MaybeRefObj<Variables>>>; 62 62 63 63 /** Combines previous data with an incoming subscription result’s data. 64 64 *
+3 -1
packages/vue-urql/src/utils.ts
··· 3 3 import { isRef } from 'vue'; 4 4 5 5 export type MaybeRef<T> = T | (() => T) | Ref<T>; 6 - export type MaybeRefObj<T extends {}> = { [K in keyof T]: MaybeRef<T[K]> }; 6 + export type MaybeRefObj<T> = T extends {} 7 + ? { [K in keyof T]: MaybeRef<T[K]> } 8 + : T; 7 9 8 10 export const unref = <T>(maybeRef: MaybeRef<T>): T => 9 11 typeof maybeRef === 'function'