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

Implement download without react-dom/server #3613

Merged
merged 6 commits into from
Oct 9, 2024

Conversation

amanmahajan7
Copy link
Contributor

No description provided.

@amanmahajan7 amanmahajan7 self-assigned this Oct 8, 2024
Copy link

codecov bot commented Oct 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.93%. Comparing base (a9ffdb1) to head (354faa7).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3613      +/-   ##
==========================================
+ Coverage   92.09%   92.93%   +0.84%     
==========================================
  Files          48       48              
  Lines        3440     3440              
  Branches      681      703      +22     
==========================================
+ Hits         3168     3197      +29     
+ Misses        272      243      -29     

see 8 files with indirect coverage changes

@amanmahajan7 amanmahajan7 marked this pull request as ready for review October 8, 2024 18:03
website/exportUtils.tsx Outdated Show resolved Hide resolved
});

exportToCsv(gridRef.current!.element!, 'CommonFeatures.csv');
setIsExporting(false);
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we flushSync here too? If the export is synchronous then we can potentially avoid a split second of displaying the grid with virtualization disabled. Not a huge concern though.

If the export is async then we should await it.

@amanmahajan7 amanmahajan7 merged commit 286f14a into main Oct 9, 2024
3 checks passed
@amanmahajan7 amanmahajan7 deleted the am-remove-react-dom/server branch October 9, 2024 21:29
Liooo added a commit to Liooo/react-data-grid that referenced this pull request Oct 16, 2024
* main:
  Bump eslint-plugin-react-hooks from 4.6.2 to 5.0.0 (adazzle#3616)
  Implement download without `react-dom/server` (adazzle#3613)
  Bump @biomejs/biome from 1.8.3 to 1.9.3 (adazzle#3612)
Liooo added a commit to Liooo/react-data-grid that referenced this pull request Oct 20, 2024
* origin/main:
  Node 23 (adazzle#3618)
  Bump eslint-plugin-react-hooks from 4.6.2 to 5.0.0 (adazzle#3616)
  Implement download without `react-dom/server` (adazzle#3613)
  Bump @biomejs/biome from 1.8.3 to 1.9.3 (adazzle#3612)
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.

2 participants