wwWallet / wallet-frontend

BSD 2-Clause "Simplified" License
21 stars 6 forks source link

Memoization, Removal of Redundant getData Call, and Optimized Polling #335

Closed gkatrakazas closed 3 days ago

gkatrakazas commented 6 days ago

This PR introduces several improvements to enhance performance and streamline the credential fetching process:

Memoization Implementation: We applied memoization to the fetchVcData, pollForCredentials, and getData functions. This prevents redundant calls to getData, which previously blocked the animation display.

Optimized Polling and URL Cleanup: The polling attempts have been reduced to improve efficiency, and the URL is now cleaned up after successfully retrieving new credentials or determining no new credentials are available.