mirror of
https://github.com/lemeow125/Reactnative-notesapp.git
synced 2024-11-16 22:19:26 +08:00
Polished add note before release
This commit is contained in:
parent
5af130d98e
commit
68408f9170
1 changed files with 1 additions and 0 deletions
|
@ -24,6 +24,7 @@ export default function NewNote() {
|
||||||
mutationFn: AddNote,
|
mutationFn: AddNote,
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
queryClient.invalidateQueries("notes");
|
queryClient.invalidateQueries("notes");
|
||||||
|
queryClient.invalidateQueries("public_notes");
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue