-
Notifications
You must be signed in to change notification settings - Fork 13k
refactor: dont use useEffect anymore to control thread scroll
#35818
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
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
2fd5569
dont use effect anymore to control thread scroll
ggazzo 50e28b1
refactor: simplify scrolling logic in useLegacyThreadMessageListScrol…
ggazzo ba042b0
refactor: invert ref logic dependency list x items to scroll
ggazzo 24a4af7
Apply suggestions from code review
ggazzo 4630481
refactor: change innerBoxRef type from HTMLDivElement | null to HTMLE…
ggazzo 3e00c1d
Merge branch 'fix/thread-jump' of github.com:RocketChat/Rocket.Chat i…
ggazzo 62add92
dont jump to bottom if there is message to jump
ggazzo ff553a6
no need to change the scrolltop after rerender
ggazzo 8180af4
restore should not apply any fallback
ggazzo 75b380e
replace old code from useLegacyThreadMessageListScrolling with useLis…
ggazzo f347843
fix ThreadMessageList references
ggazzo 6f42dd3
unused variable
ggazzo 572604c
Merge branch 'develop' into fix/thread-jump
ggazzo 4bfed3c
test: change unit test
ggazzo 72f9b13
Merge branch 'fix/thread-jump' of github.com:RocketChat/Rocket.Chat i…
ggazzo f3de827
improve test for delayed cases
ggazzo d152265
Merge branch 'develop' into fix/thread-jump
ggazzo 0725e16
review
ggazzo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.