🧦 Refactored socket store in zustand

This commit is contained in:
2025-05-18 18:02:21 -04:00
parent 0e445ba3d4
commit 2ce90d94c0
3 changed files with 324 additions and 354 deletions

View File

@@ -1,10 +1,15 @@
import React, { ReactElement } from "react";
import React, { ReactElement, useEffect } from "react";
import { Outlet } from "react-router-dom";
import { Navbar2 } from "./shared/Navbar2";
import { ToastContainer } from "react-toastify";
import "../assets/scss/App.scss";
import { useStore } from "../store";
export const App = (): ReactElement => {
useEffect(() => {
useStore.getState().getSocket("/"); // Connect to the base namespace
}, []);
return (
<>
<Navbar2 />