fix(useMutation): "mutate" optional arguments
This commit is contained in:
committed by
Guillaume Chau
parent
0ad08c792e
commit
9d64fca7bc
@@ -34,7 +34,7 @@ export function useMutation<
|
||||
// Apollo Client
|
||||
const { resolveClient } = useApolloClient()
|
||||
|
||||
async function mutate (variables: TVariables = null, overrideOptions: Omit<UseMutationOptions, 'variables'>) {
|
||||
async function mutate (variables: TVariables = null, overrideOptions: Omit<UseMutationOptions, 'variables'> = {}) {
|
||||
let currentDocument: DocumentNode
|
||||
if (typeof document === 'function') {
|
||||
currentDocument = document()
|
||||
|
||||
Reference in New Issue
Block a user