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

Use targeted useAppSelector to avoid sidebar rerender loop #2834

Merged
merged 2 commits into from
Dec 12, 2023

Conversation

imnasnainaec
Copy link
Collaborator

@imnasnainaec imnasnainaec commented Dec 12, 2023

Have components pull only what they need from the state to avoid sidebar dispatches from causing rerenders.

Fixes #2833


This change is Reviewable

@imnasnainaec imnasnainaec added bug Something isn't working frontend goal: MergeDup labels Dec 12, 2023
@imnasnainaec imnasnainaec self-assigned this Dec 12, 2023
Copy link
Contributor

@jasonleenaylor jasonleenaylor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 3 of 4 files at r1, all commit messages.
Reviewable status: 3 of 4 files reviewed, all discussions resolved (waiting on @imnasnainaec)

@codecov-commenter
Copy link

Codecov Report

Attention: 16 lines in your changes are missing coverage. Please review.

Comparison is base (e7af364) 72.37% compared to head (c56b35d) 72.37%.

Files Patch % Lines
...icates/MergeDupsStep/MergeDragDrop/SidebarDrop.tsx 0.00% 8 Missing ⚠️
...s/MergeDupsStep/MergeDragDrop/SidebarDragSense.tsx 0.00% 5 Missing ⚠️
...geDuplicates/MergeDupsStep/MergeDragDrop/index.tsx 75.00% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2834      +/-   ##
==========================================
- Coverage   72.37%   72.37%   -0.01%     
==========================================
  Files         257      257              
  Lines        9507     9520      +13     
  Branches     1096     1097       +1     
==========================================
+ Hits         6881     6890       +9     
- Misses       2300     2304       +4     
  Partials      326      326              
Flag Coverage Δ
backend 83.05% <ø> (+0.10%) ⬆️
frontend 62.57% <44.82%> (-0.09%) ⬇️

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.

Copy link
Collaborator

@jmgrady jmgrady left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 4 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @imnasnainaec)

@imnasnainaec imnasnainaec merged commit d69f7d1 into master Dec 12, 2023
17 checks passed
@imnasnainaec imnasnainaec deleted the bugfix/merge-useappselector branch December 12, 2023 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend goal: MergeDup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[MergeDuplicates] The Combine crashes when merging senses
4 participants