SIT-14695: Optimize Ticket Data Fetching

How to Use This Feature

Feature Summary

Duplicate API Calls on My Account Tickets Page

* Issue: Duplicate API calls were made on the /my-account/tickets page, causing slow load times.

* Description: The useTickets hook was making multiple API calls in a loop due to changing dependencies during auth initialization.

Behavior Changes

* Logged-in User:

+ Fetches ticket data only once on page load

* Not Logged-in User:

+ Redirects to login page if not authenticated

* Transferred Tickets:

+ Displays tickets and transfer event status after completing a transfer

+ Refreshes entry in table or page upon cancellation of transfer

Changes and Improvements

  • Removed duplicate API calls, reducing the number of requests to 1 per page load
  • Improved page performance for large numbers of tickets (up to 20,000)
  • Fixed issue with 404 page when cancelling transfer
  • Additional Information

    Status: Deployed
    🏠 Home View in Jira