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

Fix excessive loading time on new accounts #3788

Merged
merged 2 commits into from
Feb 25, 2025
Merged

Conversation

hyphenized
Copy link
Collaborator

@hyphenized hyphenized commented Feb 25, 2025

Fixes a case where a balance of zero would prevent loading from finishing early and reduces the initialLoad timer to 90 seconds.

To Test

  • Do a fresh install and import or make a new account, popup shouldn't remain stuck loading for 2 minutes

Latest build: extension-builds-3788 (as of Tue, 25 Feb 2025 22:48:46 GMT).

Fixes a case where a balance of zero would prevent loading from
finishing early and, reduces initialLoad timer to 90 seconds.
@hyphenized hyphenized self-assigned this Feb 25, 2025
@@ -264,7 +264,7 @@ export const selectAccountAndTimestampedActivities = createSelector(
return {
combinedData: {
assets: combinedAssetAmounts,
totalMainCurrencyValue: totalMainCurrencyAmount
totalMainCurrencyValue: isDefined(totalMainCurrencyAmount)
Copy link
Contributor

Choose a reason for hiding this comment

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

Oiiii.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Super sneaky coercion bug, maybe we can catch more of these with something like https://typescript-eslint.io/rules/strict-boolean-expressions/

@@ -376,7 +376,7 @@ export default class ReduxService extends BaseService<never> {
) {
super({
initialLoadWaitExpired: {
schedule: { delayInMinutes: 2.5 },
schedule: { delayInMinutes: 1.5 },
Copy link
Contributor

Choose a reason for hiding this comment

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

Big if true 😁

@Shadowfiend Shadowfiend merged commit fb01619 into main Feb 25, 2025
5 checks passed
@Shadowfiend Shadowfiend deleted the loading-times-1 branch February 25, 2025 22:43
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