LLM Wiki is a cross-platform desktop application that turns your documents into an organized, interlinked knowledge base — automatically. Instead of traditional RAG (retrieve-and-answer from scratch every time), the LLM incrementally builds and maintains a persistent wiki from your sources。
TypeScript
fix: Graph View no longer stays mounted — prevents sigma.js crash on panel resize
nash_su923e34fedb45
diff --git a/src/components/layout/content-area.tsx b/src/components/layout/content-area.tsxindex 679f2413..ac026369 100644--- a/src/components/layout/content-area.tsx+++ b/src/components/layout/content-area.tsx@@ -10,20 +10,20 @@ import { GraphView } from "@/components/graph/graph-view"export function ContentArea() {const activeView = useWikiStore((s) => s.activeView)- return (- <div className="relative h-full">- {/* Graph stays mounted, shown/hidden via CSS so it updates in real-time */}- <div className={`absolute inset-0 ${activeView === "graph" ? "" : "invisible pointer-events-none"}`}>- <GraphView />- </div>-- {/* Other views mount/unmount normally */}- {activeView === "settings" && <SettingsView />}- {activeView === "sources" && <SourcesView />}- {activeView === "review" && <ReviewView />}- {activeView === "lint" && <LintView />}- {activeView === "search" && <SearchView />}- {activeView === "wiki" && <ChatPanel />}- </div>- )+ switch (activeView) {+ case "settings":+ return <SettingsView />+ case "sources":+ return <SourcesView />+ case "review":+ return <ReviewView />+ case "lint":+ return <LintView />+ case "search":+ return <SearchView />+ case "graph":+ return <GraphView />+ default:+ return <ChatPanel />+ }}