Repository navigation
fix: restore PDF viewer data-page after reload - #13559
Merged
Merged
Conversation
devin-ai-integration
Bot
force-pushed
the
logseq/fix-pdf-reload-data-page-1bd8
branch
from
October 2, 2026 11:59
9d4d5e0 to
c5c1a51
Compare
Contributor
There was a problem hiding this comment.
🔍 Devin Review: 1 flag
Not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)
megayu
force-pushed
the
logseq/fix-pdf-reload-data-page-1bd8
branch
from
November 17, 2026 07:31
c5c1a51 to
13b1e6c
Compare
megayu
approved these changes
Nov 17, 2026
Retry document title and body data-page once the graph is restored and db-worker is ready. Initial routing can run before the worker exists, leaving data-page unset and breaking PDF viewer geometry. Co-authored-by: Tienson Qin <[email protected]>
tiensonqin
force-pushed
the
logseq/fix-pdf-reload-data-page-1bd8
branch
from
November 18, 2026 13:28
13b1e6c to
a886dd6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes logseq/db-test#1384
Summary
Initial routing can request a page title before db-worker exists, leaving
body[data-page]unset. PDF positioning CSS depends on that attribute, so reopening a PDF after reload can leave a blank pane and a misplaced toolbar.Reapply both the document title and body page label after graph restore finishes and db-worker is ready. Keep the recovery logic in the existing theme effect, with worker readiness included in its dependencies.
Validation
d6082682125a4d528afc377927a1cf18f14e7d18.Notes
Initial fail-fast route lookup errors remain; the post-restore effect repairs the title and body label once their prerequisites are ready.