Skip to content

Commit b98b18c

Browse files
committed
docs: remove unnecessary old line from diff
1 parent 5fd45f9 commit b98b18c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,8 +434,7 @@ Here is an example of the changes you would have to make:
434434
- import { useQuery, QueryStatus } from 'react-query';
435435
+ import { useQuery } from 'react-query';
436436

437-
- const { data, status } = useQuery(['post', id], (_key, id) => fetchPost(id))
438-
+ const { data, status } = useQuery(['post', id], () => fetchPost(id))
437+
const { data, status } = useQuery(['post', id], () => fetchPost(id))
439438

440439
- if (status === QueryStatus.Loading) {
441440
+ if (status === 'loading') {

0 commit comments

Comments
 (0)