Skip to content

Commit 98b2a4d

Browse files
yyq1025claude
andcommitted
menubar: drop unused @tanstack/react-query
Scaffold leftover with zero consumers — the renderer's only resident is the Pair window (bare useEffect + one IPC call), and the planned plan usage / token stats rows are native NSMenu items built in the MAIN process (fetch/cache/refresh all Node-side), where a renderer query cache can't help. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 494f098 commit 98b2a4d

3 files changed

Lines changed: 1 addition & 25 deletions

File tree

packages/menubar/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
},
2525
"dependencies": {
2626
"@sidecodeapp/daemon": "workspace:*",
27-
"@tanstack/react-query": "^5.94.0",
2827
"electron-updater": "^6.8.9",
2928
"react": "^19.2.6",
3029
"react-dom": "^19.2.6",

packages/menubar/src/main.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
21
import { StrictMode } from "react";
32
import { createRoot } from "react-dom/client";
43
import App from "./App";
@@ -15,15 +14,11 @@ const applyTheme = () =>
1514
applyTheme();
1615
themeQuery.addEventListener("change", applyTheme);
1716

18-
const queryClient = new QueryClient();
19-
2017
const root = document.getElementById("root");
2118
if (!root) throw new Error("no #root");
2219

2320
createRoot(root).render(
2421
<StrictMode>
25-
<QueryClientProvider client={queryClient}>
26-
<App />
27-
</QueryClientProvider>
22+
<App />
2823
</StrictMode>,
2924
);

pnpm-lock.yaml

Lines changed: 0 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)