We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24bbf9f commit 2964b91Copy full SHA for 2964b91
docs/rtk-query/usage/prefetching.mdx
@@ -89,9 +89,9 @@ export function usePrefetchImmediately<T extends EndpointNames>(
89
arg: Parameters<typeof api.endpoints[T]['initiate']>[0],
90
options: PrefetchOptions = {}
91
) {
92
- const dispatch = useDispatch()
+ const dispatch = useAppDispatch()
93
useEffect(() => {
94
- dispatch(api.util.prefetch(endpoint, arg, options))
+ dispatch(api.util.prefetch(endpoint, arg as any, options))
95
}, [])
96
}
97
0 commit comments