-
Notifications
You must be signed in to change notification settings - Fork 401
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
Conversation
Fixes a case where a balance of zero would prevent loading from finishing early and, reduces initialLoad timer to 90 seconds.
@@ -264,7 +264,7 @@ export const selectAccountAndTimestampedActivities = createSelector( | |||
return { | |||
combinedData: { | |||
assets: combinedAssetAmounts, | |||
totalMainCurrencyValue: totalMainCurrencyAmount | |||
totalMainCurrencyValue: isDefined(totalMainCurrencyAmount) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oiiii.
There was a problem hiding this comment.
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 }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Big if true 😁
Fixes a case where a balance of zero would prevent loading from finishing early and reduces the
initialLoad
timer to 90 seconds.To Test
Latest build: extension-builds-3788 (as of Tue, 25 Feb 2025 22:48:46 GMT).