Skip to content

Commit

Permalink
Fix unwanted mutation
Browse files Browse the repository at this point in the history
  • Loading branch information
fabien0102 committed May 8, 2019
1 parent df86e64 commit b07d81d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/useGet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ async function _fetchData<TData, TError, TQueryParams>(

const request = new Request(
resolvePath(base, path, queryParams),
merge(contextRequestOptions, requestOptions, { signal }),
merge({}, contextRequestOptions, requestOptions, { signal }),
);

try {
Expand Down

0 comments on commit b07d81d

Please sign in to comment.