Skip to content

Commit 753a95b

Browse files
committed
correction of the refetch function type in useQuery documentation
1 parent 7ae6357 commit 753a95b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/rtk-query/api/created-api/hooks.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ type UseQueryResult<T> = {
276276
isSuccess: boolean // Query has data from a successful load.
277277
isError: boolean // Query is currently in an "error" state.
278278

279-
refetch: () => void // A function to force refetch the query
279+
refetch: () => Promise<void> // A function to force refetch the query
280280
}
281281
```
282282

0 commit comments

Comments
 (0)