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.
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
HIGH: (Comment linking: step 2) [23220] WEB maintain visible content position #32098
HIGH: (Comment linking: step 2) [23220] WEB maintain visible content position #32098
Changes from 48 commits
97b0a29
a7360c4
d624dd3
a34fed2
e642647
7dd2e8f
5d67d02
ace8192
9f5084d
e9fa5bf
731514e
5e6d6f6
8042282
a22fabd
3259670
cd317c4
1ac24bb
62ed316
24f0fdc
4f99585
760eba2
ebfd970
e7d3077
8118a2d
8787cb1
dbdb226
b68e8bf
d173edb
0ba8d40
7ecd381
ee09b8a
481bca5
69ee59b
cb4e9b7
a26402d
2babd91
d6f7c55
ff502fa
c9efdc2
a05adff
941ca04
454f8a1
e5568dc
bf5b980
ae17f61
42ec7a7
356adf8
f23ef43
1cf27ad
54921a9
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Large diffs are not rendered by default.
This file was deleted.
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.
Note for posterity: these were disabled to keep this code as similar as possible to the upstream PR it's based on: necolas/react-native-web#2588
Hopefully this component only lives in our codebase relatively temporarily. We probably will want to switch to FlashList soon too for the main chat list.
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.
Having
mvcpAutoscrollToTopThreshold
as a dependency made this function gets re-evaluated on value change. Which also made thesetupMutationObserver
function re-evaluated and executed (due touseEffect
). That later function will disconnect the old observer and create a new one. This constant observer recreation is found to disrupt the new message detection.(Coming from #43600)
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.
When list is hidden and reappears, it scrolls down to the bottom. But it should keep its last scroll offset. That is why ignore this callback when list is hidden. Coming from #45434