re-uploading work
This commit is contained in:
15
web/src/main.tsx
Normal file
15
web/src/main.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
// import { StrictMode } from "react"; // Disabled - see comment below
|
||||
import { createRoot } from "react-dom/client";
|
||||
import "./index.css";
|
||||
import "./lib/api-config";
|
||||
import { initializeApiWrapper } from "./lib/api-wrapper";
|
||||
import App from "./App.tsx";
|
||||
|
||||
// Initialize API wrapper for token refresh
|
||||
initializeApiWrapper();
|
||||
|
||||
// StrictMode disabled to prevent duplicate WebSocket connections in development
|
||||
// React 18's StrictMode intentionally double-mounts components to detect side effects,
|
||||
// which causes two WebSocket connections to be briefly created. This is expected behavior
|
||||
// in development but can be confusing. Re-enable for production if needed.
|
||||
createRoot(document.getElementById("root")!).render(<App />);
|
||||
Reference in New Issue
Block a user