Skip to content

Commit bc2b674

Browse files
committed
refactor: clean up index.tsx by removing commented-out code
- Removed commented-out PostHogProvider and related code to streamline the index.tsx file. - Ensured the StrictMode wrapper is correctly applied around the QueryClientProvider and application components for better performance and debugging.
1 parent 54a88d5 commit bc2b674

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

src/frontend/index.tsx

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,28 @@
11
import React, { StrictMode } from "react";
22
import { createRoot } from "react-dom/client";
3+
34
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
45
import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
56

6-
// import posthog from "./src/lib/posthog";
7-
// import { PostHogProvider } from 'posthog-js/react';
8-
97
import "@atyrode/excalidraw/index.css";
108
import "./index.scss";
119

1210
import App from "./src/App";
1311
import AuthGate from "./src/AuthGate";
1412

15-
16-
// Create a client
1713
const queryClient = new QueryClient();
1814

1915
async function initApp() {
2016
const rootElement = document.getElementById("root")!;
2117
const root = createRoot(rootElement);
2218
root.render(
23-
// <StrictMode>
19+
<StrictMode>
2420
<QueryClientProvider client={queryClient}>
25-
{/* <PostHogProvider client={posthog}> */}
26-
<AuthGate />
27-
<App />
28-
{/* </PostHogProvider> */}
21+
<AuthGate />
22+
<App />
2923
<ReactQueryDevtools initialIsOpen={false} />
3024
</QueryClientProvider>
31-
// </StrictMode>,
25+
</StrictMode>,
3226
);
3327
}
3428

0 commit comments

Comments
 (0)