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: Reduced LTR query calls and improved rating rendering #471

Merged
merged 4 commits into from
Aug 17, 2022

Conversation

rkaraivanov
Copy link
Member

  • Extracted isLTR to an external helper function.
  • Reduced number of LTR query calls in certain scenarios to avoid
    reflow thrashing.
  • Cached rating symbols rendering logic. Properties not related
    to the symbols state will not trigger a DOM re-render.

- Extracted `isLTR` to an external helper function.
- Reduced number of LTR query calls in certain scenarios to avoid
  reflow thrashing.
- Cached rating symbols rendering logic. Properties not related
  to the symbols state will not trigger a DOM re-render.
@simeonoff
Copy link
Collaborator

@rkaraivanov hover preview with single selection doesn't seem to work as intended in this PR. The previously selected symbol stays colored even after changing the selection.

@simeonoff simeonoff merged commit 3e95b02 into master Aug 17, 2022
@simeonoff simeonoff deleted the rkaraivanov/cache-rating-rendering branch August 17, 2022 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants