From 7aee2ff288dbbc59bc5f1729772bada7cfd1da3e Mon Sep 17 00:00:00 2001 From: Yukun Guo Date: Fri, 13 Nov 2020 16:32:10 +0800 Subject: [PATCH] refactor: make state private But state/sub still exposes the keys --- src/main/frontend/state.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/frontend/state.cljs b/src/main/frontend/state.cljs index f1081a9d09..a15539dac0 100644 --- a/src/main/frontend/state.cljs +++ b/src/main/frontend/state.cljs @@ -9,7 +9,7 @@ [dommy.core :as dom] [cljs.core.async :as async])) -(defonce state +(defonce ^:private state (atom {:route-match nil :today nil