🏗️ Added react-toastify

This commit is contained in:
2024-06-13 14:09:15 -04:00
parent 2879df114d
commit e2f1d5a307
5 changed files with 30 additions and 21 deletions

View File

@@ -5,6 +5,7 @@ import { SOCKET_BASE_URI } from "../constants/endpoints";
import { produce } from "immer";
import { QueryClient } from "@tanstack/react-query";
/* Broadly, this file sets up:
* 1. The zustand-based global client state
* 2. socket.io client
@@ -129,6 +130,10 @@ socketIOInstance.on("LS_COVER_EXTRACTION_FAILED", (data) => {
}));
});
socketIOInstance.on("searchResultsAvailable", (data) => {
console.log(data);
});
// 1b. Clear the localStorage sessionId upon receiving the
// LS_IMPORT_QUEUE_DRAINED event
socketIOInstance.on("LS_IMPORT_QUEUE_DRAINED", (data) => {