New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: performance degradation #6347
Conversation
40c49b6
to
19af037
Compare
(not (.contains (.-classList target) "ignore-outside-event"))) | ||
(on-hide state e :click))))] | ||
(when-not (false? outside?) | ||
(listen state js/window "mouseup" click-fn))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixed the issue that the dropdown modal is not closed when editing a block.
https://www.loom.com/share/9241a366ed7548b6a73877b8c790c96f
(recur (conj result parent) parent) | ||
result)))) | ||
|
||
(defn- get-blocks-parents-from-both-dbs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need parents from both dbs because some refs could be deleted from the previous db.
decc7ce
to
6f2a203
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on some long pages. Smooth & robust 🚀
LGTM
avet
index to speed updb/get-block-children-ids
query-state
, the result is that editing in both queries and linked references will be fast compared to the master branch:block/path-refs
not re-computed when moving blocks up/down