refactor(server/notes): Implement singleton architecture

Also trying something out with the response structure on the server to cut down on redundant calls.
This commit is contained in:
Taso committed 2021-04-19 14:14:25 -04:00
1 parent 0f8923058f
commit feb9e8a5d3
8 files changed
+219 -136

No files matched your search

+1 -3
View File
@@ -34,9 +34,7 @@ export const NoteModal = () => {
const handleDeleteNote = () => {
const id = detail.id;
Nui.send(NotesEvents.DELETE_NOTE, {
id,
});
Nui.send(NotesEvents.DELETE_NOTE, id);
setDetail(null);
};