1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00
metamask-extension/ui/pages/home
Mark Stacey 75b9f71d45
Remove unnecessary mounted state from Home component (#13202)
The `mounted` state was used to derive state from props before the
first render of the Home component. Instead this state is now derived
in the constructor, which is also run before the first render. This
should behave exactly the same, except now we don't need the `mounted`
state or the `deriveStateFromProps` function anymore.

The call to `closeCurrentWindow` that was made in `componentDidUpdate`
has been moved to the constructor as well. There is no need to delay
that call, and this saves us from having to compare current with
previous state in that lifecycle function.
2022-01-04 19:19:06 -03:30
..
beta-home-footer.component.js Create MetaMask Beta build (#10985) 2021-09-08 15:08:23 -05:00
home.component.js Remove unnecessary mounted state from Home component (#13202) 2022-01-04 19:19:06 -03:30
home.container.js Permission System 2.0 (#12243) 2021-12-06 19:16:49 -08:00
index.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
index.scss Network Form Design and switch to full screen enhancements (#12302) 2021-10-25 16:38:43 -04:00