Skip to content
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

refactor(feed-chat): reduce unnecessary DOM elements by conditionally rendering MembersSidekick to improve performance #2756

Conversation

domw30
Copy link
Collaborator

@domw30 domw30 commented Mar 7, 2025

What does this do?

We are modifying the rendering logic of the MembersSidekick component to ensure it is only rendered when the isSecondarySidekickOpen flag is true.

Why are we making this change?

This change is being made to improve the application's performance by reducing unnecessary DOM elements and memory usage when the MembersSidekick is not visible.

How do I test this?

  • run tests as usual
  • run ui and check element tab in dev tools doesn't show the secondary sidekick container

Key decisions and Risk Assessment:

Things to consider:

  1. How will this affect security?
  2. How will this affect performance?
  3. Does this change any APIs?

domw30 added 2 commits March 7, 2025 13:02
…nally rendering MembersSidekick to improve performance
… rendering MembersSidekick to improve performance
@domw30 domw30 requested a review from a team March 7, 2025 13:17
Base automatically changed from refactor/conditionally-render-MembersSidekick-to-improve-performance to main March 7, 2025 13:25
…conditionally-rendering-MembersSidekick-to-improve-performance
@domw30 domw30 merged commit c49b780 into main Mar 7, 2025
5 checks passed
@domw30 domw30 deleted the refactor/reduce-unnecessary-DOM-elements-by-conditionally-rendering-MembersSidekick-to-improve-performance branch March 7, 2025 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant