Skip to content

Commit cd09e3b

Browse files
committed
Invalidate handleReload when client change
1 parent 1291b7e commit cd09e3b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-fetching-library",
3-
"version": "1.7.3",
3+
"version": "1.7.4",
44
"description": "Simple and powerful API client for react. Use hooks or FACC's to fetch data in easy way. No dependencies! Just react under the hood.",
55
"main": "lib/index.js",
66
"files": [

src/hooks/useQuery/useQuery.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export const useQuery = <T = any, R = any>(action: Action<T, R>, initFetch = tru
7272

7373
const handleReload = useCallback(() => {
7474
return handleQuery(true);
75-
}, [convertActionToBase64(action)]);
75+
}, [handleQuery]);
7676

7777
const handleAbort = useCallback(() => {
7878
if (controller.current) {

0 commit comments

Comments
 (0)