Skip to content

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

Merged
dsmmcken merged 1 commit intomainfrom
dmckenzie_notebook_is_focused
May 3, 2024
Merged

perf: remove focus tracking in notebook panel causing extra re-render#1983
dsmmcken merged 1 commit intomainfrom
dmckenzie_notebook_is_focused

Conversation

@dsmmcken
Copy link
Copy Markdown
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
@codecov
Copy link
Copy Markdown

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
@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