Skip to content

Commit 54cf294

Browse files
authored
Update part6d.md
instead of passing the function like this "queryFn: () => getNotes" it should be like this "queryFn: getNotes" so we receive the array with the notes.
1 parent 815e398 commit 54cf294

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/6/en/part6d.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ const App = () => {
144144

145145
const result = useQuery({
146146
queryKey: ['notes'],
147-
queryFn: () => getNotes // highlight-line
147+
queryFn: getNotes // highlight-line
148148
})
149149

150150
// ...

0 commit comments

Comments
 (0)