File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -379,8 +379,8 @@ const App = () => {
379379 mutationFn: createNote,
380380 // highlight-start
381381 onSuccess : (newNote ) => {
382- const notes = queryClient .getQueryData (' notes' )
383- queryClient .setQueryData (' notes' , notes .concat (newNote))
382+ const notes = queryClient .getQueryData ([ ' notes' ] )
383+ queryClient .setQueryData ([ ' notes' ] , notes .concat (newNote))
384384 // highlight-end
385385 }
386386 })
Original file line number Diff line number Diff line change @@ -380,8 +380,8 @@ const App = () => {
380380 mutationFn: createNote,
381381 // highlight-start
382382 onSuccess : (newNote ) => {
383- const notes = queryClient .getQueryData (' notes' )
384- queryClient .setQueryData (' notes' , notes .concat (newNote))
383+ const notes = queryClient .getQueryData ([ ' notes' ] )
384+ queryClient .setQueryData ([ ' notes' ] , notes .concat (newNote))
385385 // highlight-end
386386 }
387387 })
You can’t perform that action at this time.
0 commit comments