Merge branch 'feat/db' into fix/multiple-tabs

This commit is contained in:
Tienson Qin
2025-04-23 22:28:58 +08:00
10 changed files with 83 additions and 36 deletions

View File

@@ -75,6 +75,7 @@
:nfs/refreshing? nil
:instrument/disabled? (storage/get "instrument-disabled")
;; TODO: how to detect the network reliably?
;; NOTE: prefer to use flows/network-online-event-flow
:network/online? true
:indexeddb/support? true
:me nil
@@ -1641,7 +1642,11 @@ Similar to re-frame subscriptions"
(defn set-online!
[value]
(set-state! :network/online? value))
(set-state! :network/online? value)
;; to avoid watch whole big state atom,
;; there's an atom flows/*network-online?,
;; then we can use flows/network-online-event-flow
(reset! flows/*network-online? value))
(defn get-plugins-slash-commands
[]