mirror of
https://github.com/logseq/logseq.git
synced 2026-05-02 09:56:31 +00:00
Merge branch 'feat/db' into fix/multiple-tabs
This commit is contained in:
@@ -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
|
||||
[]
|
||||
|
||||
Reference in New Issue
Block a user