Skip to content

fix: user export list#1048

Merged
arunjaindev merged 2 commits into
mainfrom
fix/user-export-list
Jun 2, 2026
Merged

fix: user export list#1048
arunjaindev merged 2 commits into
mainfrom
fix/user-export-list

Conversation

@AbhishekA1509

Copy link
Copy Markdown
Member

This pull request updates the ExportToCsv component to improve download handling and abort controller management, and bumps the package version. The most significant changes are improvements to how CSV downloads are triggered and how abort controllers are initialized and cleaned up.

Export/download flow improvements:

  • Changed the download trigger to set a pendingDownload state, which is then handled by a new useEffect hook. This ensures the CSV download is initiated only after data is fetched and state is updated, improving reliability. [1] [2]

Abort controller management:

  • Modified the initialization of abortControllerRef to start as null and set it up in a useEffect, ensuring a new AbortController is created on mount and properly aborted on unmount. This prevents potential memory leaks and ensures correct cancellation behavior. [1] [2]

Package version update:

  • Bumped the package version in package.json from 4.0.5 to 4.0.6 to reflect these changes.

@arunjaindev arunjaindev merged commit 9566cc4 into main Jun 2, 2026
6 checks passed
@arunjaindev arunjaindev deleted the fix/user-export-list branch June 2, 2026 06:48
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