Skip to content

Commit f899e55

Browse files
authored
docs: typo (TanStack#2118)
1 parent 7fe6e30 commit f899e55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/pages/guides/migrating-to-react-query-3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ They were previously added as the last query key parameter in your query functio
147147
useInfiniteQuery(['posts'], (_key, pageParam = 0) => fetchPosts(pageParam))
148148

149149
// New
150-
useInfiniteQuery(['posts'], ({ pageParam = 0 }) => fetchPost(pageParam))
150+
useInfiniteQuery(['posts'], ({ pageParam = 0 }) => fetchPosts(pageParam))
151151
```
152152

153153
### usePaginatedQuery() has been deprecated in favor of the `keepPreviousData` option

0 commit comments

Comments
 (0)