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

More consistent loading on Accounts #719

Merged
merged 6 commits into from
Feb 3, 2023

Conversation

aristidesstaffieri
Copy link
Contributor

Right now, If you navigate to the Account(Home) tab you might notice that there is a very quick "flash of screen".

This happens because we use the accountBalanceStatus to conditionally render the page body but nothing resets it after navigating away from this page so when you land on the page you are in accountBalanceStatus.success which does not skip the render and quickly flashes the bare screen before the effect kicks off the api call and resets the loading/data fetching cycle.

I added an action to resetAccountBalanceStatus and dispatch it on dismount of Account in order to avoid this.
I also tweaked the height on the loader div for SendAmount in order to expose the tabs underneath, before they were covered by the transparent bg of the loader div which prevented users from being able to nav while loading is taking place. This likely never happens but if the call took a long time for some reason or hung then the user could still nav away from the tab and do other stuff.

@aristidesstaffieri aristidesstaffieri self-assigned this Feb 1, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Feb 1, 2023

@aristidesstaffieri

This comment was marked as resolved.

@aristidesstaffieri aristidesstaffieri changed the base branch from master to release/2.9.3 February 2, 2023 22:17
@aristidesstaffieri aristidesstaffieri merged commit 85fdd71 into release/2.9.3 Feb 3, 2023
@aristidesstaffieri aristidesstaffieri deleted the improvement/tab-loading-states branch February 3, 2023 22:10
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