Skip to content

Conversation

@amanmahajan7
Copy link
Collaborator

No description provided.

@amanmahajan7 amanmahajan7 self-assigned this Nov 11, 2024
@amanmahajan7 amanmahajan7 marked this pull request as draft November 11, 2024 22:06
@codecov
Copy link

codecov bot commented Nov 11, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 90.12%. Comparing base (ff441ba) to head (8941e6a).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/DataGrid.tsx 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3627      +/-   ##
==========================================
- Coverage   93.29%   90.12%   -3.17%     
==========================================
  Files          48       48              
  Lines        3458     3453       -5     
  Branches      697      660      -37     
==========================================
- Hits         3226     3112     -114     
- Misses        232      341     +109     
Files with missing lines Coverage Δ
src/DataGrid.tsx 88.29% <75.00%> (-1.92%) ⬇️

... and 10 files with indirect coverage changes

@amanmahajan7 amanmahajan7 changed the title Remove prevSelectedPosition state and one useLayoutEffect Remove prevSelectedPosition state Nov 12, 2024
@amanmahajan7 amanmahajan7 marked this pull request as ready for review November 12, 2024 01:16
@amanmahajan7 amanmahajan7 merged commit dd76e81 into main Nov 12, 2024
@amanmahajan7 amanmahajan7 deleted the remove-use-effect branch November 12, 2024 14:15
useLayoutEffect(() => {
if (
!selectedCellIsWithinSelectionBounds ||
isSamePosition(selectedPosition, prevSelectedPosition)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It does not look like check is needed

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Forgot to post this comment

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.

3 participants