add network error state to hooks

This commit is contained in:
Alex Holliday committed 2025-01-29 12:32:09 -08:00
1 parent d2d2e87184
commit 4559215316
5 files changed
+40 -17

No files matched your search

-1
View File
@@ -3,7 +3,6 @@ const BASE_URL = import.meta.env.VITE_APP_API_BASE_URL;
const FALLBACK_BASE_URL = "http://localhost:5000/api/v1";
import { clearAuthState } from "../Features/Auth/authSlice";
import { clearUptimeMonitorState } from "../Features/UptimeMonitors/uptimeMonitorsSlice";
import { createToast } from "./toastUtils";
class NetworkService {
constructor(store, dispatch, navigate) {