Skip to content

Commit 03f6bf0

Browse files
Update docs/framework/react/guides/prefetching.md
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 531d3fd commit 03f6bf0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/framework/react/guides/prefetching.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ This is how you use `query` to prefetch:
4545
```tsx
4646
import { noop } from '@tanstack/react-query'
4747

48-
const prefetchTodos = () => {
48+
const prefetchTodos = async () => {
4949
await queryClient
5050
.query({
5151
queryKey: ['todos'],

0 commit comments

Comments
 (0)