1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/app
Mark Stacey dbafa49448
Skip render when home page is closing or redirecting (#9012)
The Home page component is responsible for closing the notification
window and triggering redirects in various situations. When this
happens, the home page is briefly rendered before the redirect/close
happens. This is a waste of cycles, and is distracting for users.

We now render nothing if the page is in the process of redirecting or
reloading. None of the redirects handled in this component are for sub-
pages, so we don't need the Home page to render in any of these cases.

We were already doing this for redirects to transaction confirmations,
but now we're taking the same approach for all redirects, and for the
cases where the window is closed.
2020-07-16 15:23:07 -03:00
..
components Fix ListItem styles (#9002) 2020-07-15 17:13:33 -03:00
contexts Use eslint@6.8.0 (#8978) 2020-07-14 12:50:41 -02:30
css Uncomment and fix all auto-fixable stylelint rules (#8989) 2020-07-15 10:13:40 -03:00
ducks Use eslint@6.8.0 (#8978) 2020-07-14 12:50:41 -02:30
helpers Use eslint@6.8.0 (#8978) 2020-07-14 12:50:41 -02:30
hooks Use eslint@6.8.0 (#8978) 2020-07-14 12:50:41 -02:30
pages Skip render when home page is closing or redirecting (#9012) 2020-07-16 15:23:07 -03:00
selectors Use eslint@6.8.0 (#8978) 2020-07-14 12:50:41 -02:30
store Hide loading indication after personal_sign (#9006) 2020-07-15 22:12:56 -03:00