-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
fix: UI segment re render caused by route change #33215
Conversation
WalkthroughThe modifications in the EditorPane UI involve reorganizing the routing logic within the Changes
Assessment against linked issues
The changes primarily focus on routing logic and do not explicitly address the focus management issue described in the linked bug report. Further review or additional code changes might be necessary to ensure that the focus behavior is corrected as per the issue requirements. Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
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.
LGTM
Description
On route changes, the UI segment components were re-created (re mounted) causing scrolls to reset. This was happening because of how we were passing the Route Components inside the React Router
Route
.By passing these componenets as children of routes instead of a prop function, we avoid recreating the component on route changes and hence avoiding the scroll to reset
Fixes #32995
Automation
/ok-to-test tags="@tag.IDE, @tag.Widget"
🔍 Cypress test results
Caution
🔴 🔴 🔴 Some tests have failed.
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/8972146055
Commit: 05851e3
Cypress dashboard: Click here!
The following are new failures, please fix them before merging the PR:
Communication
Should the DevRel and Marketing teams inform users about this change?