diff options
| author | Adam Soltys <[email protected]> | 2026-09-14 13:46:58 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-09-14 13:46:58 -0700 |
| commit | 0c0ba1b0129a140dc540f0fb8588b3ffdd44350c (patch) | |
| tree | 26c5e00dc2a7fb6fc1ba13caa8015e5ee09f1e68 /src/features/sync.js | |
| parent | d730ea49feb389b43362b1044964f5a9e03ae4ff (diff) | |
| download | coinosv3-0c0ba1b0129a140dc540f0fb8588b3ffdd44350c.tar.gz coinosv3-0c0ba1b0129a140dc540f0fb8588b3ffdd44350c.zip | |
A new post opens up instead of appearing.
A post let in at the top of an open feed was there on the next paint —
one frame nothing, the next a whole row, the page shoved down by that
much. Now it opens over a third of a second: height from nothing to its
own, fading in as it goes, and a repaint mid-way resumes where it was.
The same happens to the posts the pill lets in.
That needed the morph to know which row is which. Children were matched
by position, so a new first row was patched onto the old first row's
node and every row below onto its neighbour's — the node the new post
was built as never reached the page. A list whose every child carries a
data-key is now reconciled by key: new rows are inserted as themselves,
the rest keep their nodes and move. Feed rows and their hairlines carry
the post id. Partially keyed lists keep the positional rule.
feed-live-test catches the arriving row mid-animation: shorter than it
will be, one animation running, and settled clean afterwards.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01QYJfZ4A1TDCEY4Foq3CApR
Diffstat (limited to 'src/features/sync.js')
0 files changed, 0 insertions, 0 deletions
