Skip to content

Commit 6c64f69

Browse files
authored
Merge pull request #4000 from domvo/docs/correction-of-refetch-typing-for-use-query
correction of the refetch function type in useQuery documentation
2 parents c21e260 + 08dcaed commit 6c64f69

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
@@ -277,7 +277,7 @@ type UseQueryResult<T> = {
277277
isSuccess: boolean // Query has data from a successful load.
278278
isError: boolean // Query is currently in an "error" state.
279279

280-
refetch: () => void // A function to force refetch the query
280+
refetch: () => QueryActionCreatorResult // A function to force refetch the query - returns a Promise with additional methods
281281
}
282282
```
283283

0 commit comments

Comments
 (0)