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

Ensure home screen does not render if there are unapproved txs #6501

Merged
merged 2 commits into from
Apr 27, 2019

Conversation

danjm
Copy link
Contributor

@danjm danjm commented Apr 24, 2019

This was causing significantly slow behaviour when transaction lists are large. I will add more details to this description later.

This was discovered while working on #6380. Resolving that issue will lead to further performance improvements on the confirm screen, in some cases.

@bdresser This will fix performance problems that have the same symptoms as what some users describe in #6017

@danjm danjm requested a review from whymarrh as a code owner April 24, 2019 11:59
@chikeichan
Copy link
Contributor

LGTM 🔥 - i will review + approve again when tests pass

@danjm danjm force-pushed the render-confirm-before-home branch from 0e95fa4 to 3bc2cda Compare April 25, 2019 17:49
@metamaskbot
Copy link
Collaborator

Builds ready [3bc2cda]: chrome, firefox, edge, opera

@danjm danjm merged commit 39b7145 into develop Apr 27, 2019
kumavis pushed a commit that referenced this pull request Apr 29, 2019
* Ensure that the confirm screen renders before the home screen if there are unapproved txs.

* Only render confirm screen before home screen on mount.
@whymarrh whymarrh deleted the render-confirm-before-home branch April 30, 2019 15:38
frankiebee pushed a commit that referenced this pull request May 3, 2019
…6410)

* Ensure home screen does not render if there are unapproved txs (#6501)

* Ensure that the confirm screen renders before the home screen if there are unapproved txs.

* Only render confirm screen before home screen on mount.

* inpage - revert _metamask api to isEnabled isApproved isUnlocked
Gudahtt added a commit that referenced this pull request Feb 28, 2020
The Home screen had a check for whether the current path is
`/confirm-transaction`, but the router wouldn't have routed there if
that was the case.

This was done in #6501 as a performance improvement, but I suspect this
line in particular never worked.
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.

3 participants