WIP: try legends on native again#29361
Open
chrisnojima wants to merge 3 commits into
Open
Conversation
…g flash, late-growth parking Bump @legendapp/list 3.0.6 -> 3.1.0 and restore the native thread list to LegendList (un-revert 006c0aa). Regenerate the web ResizeObserver-batching patch for 3.1.0. Leverage 3.1.0 APIs to fix the artifacts that caused the prior revert: - Prepend jump-to-bottom: maintainScrollAtEndThreshold 0.5 -> default 0.1. The wide window made the top of a short thread count as "near end", so loading older messages (onStartReached prepend) misfired scrollToEnd. Default threshold re-pins only true appends; prepends hold position via maintainVisibleContentPosition. - Late row-growth parking (flip result, reactions, unfurls settling after first paint left the thread above the newest message): new useSyncRowLayout hook calls 3.1.0 useSyncLayout() to flush the row measure synchronously on content change, so the list re-pins on the same frame. Wired in wrapper (reactions/unfurl card), coinflip (flip status), and unfurl image (late dimensions). Replaces the need for the wide threshold. Noops on desktop / old architecture. - Fast-fling cost: experimental_adaptiveRender emits a velocity-driven light/normal signal; rows read it via useAdaptiveRender and disable the per-row swipe pan handlers during fast scroll. SwipeableRow gains an `enabled` prop that toggles panHandlers on the same Animated.View, so the row tree stays stable across the swap (a structural swap would remount children and flash all images on fling-stop). Remove the temporary LISTDBG instrumentation. Desktop continues to use LegendList.
- dataKey replaces key remount on conversation switch (desktop + native); 3.3.0 resets layout readiness and re-runs the initial scroll target per dataset, so switches reuse the mounted list and recycled container pool - desktop explicit maintainScrollAtEnd.on config lost footer-resize re-pinning in 3.1.1 unless footerLayout is opted in; add it
fea1104 to
8f34333
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.
No description provided.