From e6cac81a1be089774161314430fce28c620d7573 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Mon, 2 Aug 2021 17:59:13 +0200 Subject: feature: make 3d persistant --- pages/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pages') diff --git a/pages/index.tsx b/pages/index.tsx index 57924b8..4a178be 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -136,7 +136,7 @@ export function GraphPage() { const { setEmacsTheme } = useContext(ThemeContext) - const [threeDim, setThreeDim] = useState(false) + const [threeDim, setThreeDim] = usePersistantState('3d', false) const [scope, setScope] = useState({ nodeIds: [] }) const scopeRef = useRef({ nodeIds: [] }) const behaviorRef = useRef(initialBehavior) -- cgit v1.2.3