From 68408f9170b7334f1545b179ae66c7a865b34cae Mon Sep 17 00:00:00 2001 From: keannu125 Date: Sun, 16 Apr 2023 20:33:19 +0800 Subject: [PATCH] Polished add note before release --- src/Routes/NewNote/NewNote.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Routes/NewNote/NewNote.tsx b/src/Routes/NewNote/NewNote.tsx index 54a0fef..d680bb5 100644 --- a/src/Routes/NewNote/NewNote.tsx +++ b/src/Routes/NewNote/NewNote.tsx @@ -24,6 +24,7 @@ export default function NewNote() { mutationFn: AddNote, onSuccess: () => { queryClient.invalidateQueries("notes"); + queryClient.invalidateQueries("public_notes"); }, });