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

perf: remove focus tracking in notebook panel causing extra re-render #1983

Merged
merged 1 commit into from
May 3, 2024

Conversation

dsmmcken
Copy link
Contributor

@dsmmcken dsmmcken commented May 2, 2024

Removed orphaned code that used to do things, but now doesn't do anything but update an unused isFocused state variable. This was causing an additional re-render on focus when state was then updated.

Removed orphaned code that used to do things, but now doesn't do anything but update an unused isFocused state variable. This was causing an additional re-render on focus when state was then updated.
@dsmmcken dsmmcken requested a review from mofojed May 2, 2024 19:29
Copy link

codecov bot commented May 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 46.26%. Comparing base (147c8de) to head (fc15d9e).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1983   +/-   ##
=======================================
  Coverage   46.25%   46.26%           
=======================================
  Files         668      668           
  Lines       38700    38692    -8     
  Branches     9796     9796           
=======================================
  Hits        17900    17900           
+ Misses      20746    20738    -8     
  Partials       54       54           
Flag Coverage Δ
unit 46.26% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dsmmcken dsmmcken merged commit a283e13 into main May 3, 2024
10 checks passed
@dsmmcken dsmmcken deleted the dmckenzie_notebook_is_focused branch May 3, 2024 13:30
@github-actions github-actions bot locked and limited conversation to collaborators May 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants