Skip to content
This repository has been archived by the owner on Nov 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #110 from contiamo/useget-request-options
Browse files Browse the repository at this point in the history
Add requestOptions in the watch list for refetch
  • Loading branch information
Tejas Kumar authored Apr 2, 2019
2 parents b791836 + 7268c1b commit eaa37d2
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 @@ -192,7 +192,7 @@ export function useGet<TData = any, TError = any, TQueryParams = { [key: string]
abortController.current.abort();
abortController.current = new AbortController();
};
}, [props.path, props.base, props.resolve, props.queryParams]);
}, [props.path, props.base, props.resolve, props.queryParams, props.requestOptions]);

return {
...state,
Expand Down

0 comments on commit eaa37d2

Please sign in to comment.