fix: don't re-render the unrelated blocks when inserting a new block

This commit is contained in:
Tienson Qin
2020-11-13 21:08:05 +08:00
parent db30822b0a
commit 3c18e0ef84
6 changed files with 95 additions and 146 deletions

View File

@@ -48,6 +48,11 @@
[content]
(util/copy-to-clipboard! (text/remove-id-property content)))
(defn config-with-document-mode
[config]
(assoc config
:document/mode? (state/sub [:document/mode?])))
(comment
(let [repo (state/get-current-repo)]
(p/let [remote-oid (get-remote-ref repo)