diff --git a/src/queries/useExecuteQuery.ts b/src/queries/useExecuteQuery.ts index 47fb4e2..cbc5dc9 100644 --- a/src/queries/useExecuteQuery.ts +++ b/src/queries/useExecuteQuery.ts @@ -233,13 +233,16 @@ export function useExecuteQuery< } setDitto(nextDitto) - const finalQueryArguments: U = {} as U + let finalQueryArguments: U = {} as U if (queryArguments) { - Object.assign(finalQueryArguments, queryArguments) + finalQueryArguments = Object.assign(finalQueryArguments, queryArguments) } if (localQueryArguments) { - Object.assign(finalQueryArguments, localQueryArguments) + finalQueryArguments = Object.assign( + finalQueryArguments, + localQueryArguments, + ) } try {