moduel setgins fixed

This commit is contained in:
IGNY8 VPS (Salman)
2025-12-20 22:49:31 +00:00
parent 5c9ef81aba
commit 646095da65
7 changed files with 220 additions and 54 deletions

View File

@@ -7,6 +7,7 @@ import ProtectedRoute from "./components/auth/ProtectedRoute";
import GlobalErrorDisplay from "./components/common/GlobalErrorDisplay";
import LoadingStateMonitor from "./components/common/LoadingStateMonitor";
import { useAuthStore } from "./store/authStore";
import { useModuleStore } from "./store/moduleStore";
// Auth pages - loaded immediately (needed for login)
import SignIn from "./pages/AuthPages/SignIn";
@@ -111,7 +112,13 @@ const Components = lazy(() => import("./pages/Components"));
export default function App() {
// All session validation removed - API interceptor handles authentication
const { isAuthenticated } = useAuthStore();
const { loadModuleSettings } = useModuleStore();
// Load global module settings immediately on mount (public endpoint, no auth required)
useEffect(() => {
loadModuleSettings();
}, [loadModuleSettings]);
return (
<>