Skip to content

Commit 8ad5262

Browse files
authored
Merge pull request #3713 from myverdict/patch-2
Update part6d.md
2 parents d88dea3 + 10045fc commit 8ad5262

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
@@ -260,14 +260,14 @@ import { getNotes, createNote, updateNote } from './requests' // highlight-line
260260
const App = () => {
261261
// ...
262262

263+
// highlight-start
263264
const updateNoteMutation = useMutation({
264265
mutationFn: updateNote,
265266
onSuccess: () => {
266267
queryClient.invalidateQueries({ queryKey: ['notes'] })
267268
},
268269
})
269270

270-
// highlight-start
271271
const toggleImportance = (note) => {
272272
updateNoteMutation.mutate({...note, important: !note.important })
273273
}

0 commit comments

Comments
 (0)