mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 01:16:27 +00:00
enhance(perf): insert and delete blocks (#9142)
* enhance(perf): improve performance for both insert and delete * fix: remember cursor pos before executing the body in a transaction Otherwise, the edit-block and position could be changed * fix: disable delete-concat when there's no child or right sibling --------- Co-authored-by: Gabriel Horner <97210743+logseq-cldwalker@users.noreply.github.com> Co-authored-by: Gabriel Horner <gabriel@logseq.com>
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
;;; keywords specs for reactive query, used by `react/q` calls
|
||||
;; ::block
|
||||
;; pull-block react-query
|
||||
(s/def ::block (s/tuple #(= ::block %) uuid?))
|
||||
(s/def ::block (s/tuple #(= ::block %) int?))
|
||||
;; ::page-blocks
|
||||
;; get page-blocks react-query
|
||||
(s/def ::page-blocks (s/tuple #(= ::page-blocks %) int?))
|
||||
|
||||
Reference in New Issue
Block a user