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.
This PR introduces several improvements to enhance performance and streamline the credential fetching process:
Memoization Implementation: We applied memoization to the
fetchVcData
,pollForCredentials
, andgetData
functions. This prevents redundant calls togetData
, 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.