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

Stop unnecessary state updates to prevent unnecessary rerenders #1758

Merged
merged 4 commits into from
Nov 18, 2022

Conversation

imnasnainaec
Copy link
Collaborator

@imnasnainaec imnasnainaec commented Nov 17, 2022

Resolves #1759

This change is Reviewable

@imnasnainaec imnasnainaec self-assigned this Nov 17, 2022
@imnasnainaec imnasnainaec changed the title Memoize GlossWithSuggestions to prevent unnecessary rerenders Stop unnecessary state updates to prevent unnecessary rerenders Nov 18, 2022
@codecov-commenter
Copy link

codecov-commenter commented Nov 18, 2022

Codecov Report

Base: 51.41% // Head: 51.37% // Decreases project coverage by -0.04% ⚠️

Coverage data is based on head (3ad2196) compared to base (6a0e31e).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1758      +/-   ##
==========================================
- Coverage   51.41%   51.37%   -0.05%     
==========================================
  Files         277      277              
  Lines        8569     8570       +1     
  Branches      630      631       +1     
==========================================
- Hits         4406     4403       -3     
- Misses       3658     3661       +3     
- Partials      505      506       +1     
Flag Coverage Δ
backend 78.96% <ø> (-0.09%) ⬇️
frontend 32.24% <0.00%> (-0.01%) ⬇️

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

Impacted Files Coverage Δ
...onents/DataEntry/DataEntryTable/DataEntryTable.tsx 39.11% <0.00%> (-0.18%) ⬇️
Backend/Helper/DuplicateFinder.cs 85.95% <0.00%> (-1.69%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@lgtm-com

This comment was marked as resolved.

@imnasnainaec imnasnainaec marked this pull request as ready for review November 18, 2022 19:18
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 1 of 2 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @imnasnainaec)

@imnasnainaec imnasnainaec merged commit f20ae7a into master Nov 18, 2022
@imnasnainaec imnasnainaec deleted the data-entry-table-rerender branch November 18, 2022 19: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.

[DataEntryTable] Everything re-renders with each keystroke in the NewEntry's vernacular field
3 participants