Skip to content

Preserve native list row menu anchors during deletion - #254

Merged
tiensonqin merged 1 commit into
mainfrom
logseq/native-graph-menu-lifetime
Oct 21, 2026
Merged

tiensonqin merged 1 commit into
mainfrom
logseq/native-graph-menu-lifetime

Conversation

@tiensonqin

Copy link
Copy Markdown
Collaborator

Removing the last action cleared the context menu's cached anchor, detaching native context/swipe modifiers from a retained list row immediately before deletion. This can overlap an iPhone collection batch update and crash with an invalid item count. Keep the anchor until its context-menu node is removed, and retain inferred swipe slots across action changes. Empty menus hide the overflow button.

Add the context-menu-only row style for apps that expose deletion exclusively through the native long-press menu.

Validation: all 184 Apple backend tests pass. A native iOS regression replays 24 graph deletions and checks cell/content identity after removing the last action and exact Local/Remote section counts. It fails before this fix and passes after it. This branch starts from the latest main and contains one new commit.

@tiensonqin
tiensonqin merged commit 03cc080 into main Oct 21, 2026
7 checks passed
@tiensonqin
tiensonqin deleted the logseq/native-graph-menu-lifetime branch October 21, 2026 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant