mirror of https://github.com/logseq/logseq
chore: update debug code in comment
parent
ea566f7d5f
commit
9eb6fb321e
|
@ -415,19 +415,19 @@ when undo this op, this original entity-map will be transacted back into db")
|
||||||
(comment
|
(comment
|
||||||
|
|
||||||
(clear-undo-redo-stack)
|
(clear-undo-redo-stack)
|
||||||
(add-watch (:undo/repo->undo-stack @worker-state/*state)
|
(add-watch (:undo/repo->pege-block-uuid->undo-ops @worker-state/*state)
|
||||||
:xxx
|
:xxx
|
||||||
(fn [_ _ o n]
|
(fn [_ _ o n]
|
||||||
(cljs.pprint/pprint {:k :undo
|
(cljs.pprint/pprint {:k :undo
|
||||||
:o o
|
:o o
|
||||||
:n n})))
|
:n n})))
|
||||||
|
|
||||||
(add-watch (:undo/repo->redo-stack @worker-state/*state)
|
(add-watch (:undo/repo->pege-block-uuid->redo-ops @worker-state/*state)
|
||||||
:xxx
|
:xxx
|
||||||
(fn [_ _ o n]
|
(fn [_ _ o n]
|
||||||
(cljs.pprint/pprint {:k :redo
|
(cljs.pprint/pprint {:k :redo
|
||||||
:o o
|
:o o
|
||||||
:n n})))
|
:n n})))
|
||||||
|
|
||||||
(remove-watch (:undo/repo->undo-stack @worker-state/*state) :xxx)
|
(remove-watch (:undo/repo->pege-block-uuid->undo-ops @worker-state/*state) :xxx)
|
||||||
(remove-watch (:undo/repo->redo-stack @worker-state/*state) :xxx))
|
(remove-watch (:undo/repo->pege-block-uuid->redo-ops @worker-state/*state) :xxx))
|
||||||
|
|
Loading…
Reference in New Issue