1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 12:29:06 +01:00
metamask-extension/ui
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
..
__mocks__ Increase Jest unit test coverage for the Swaps feature to ~60% (#11343) 2021-07-02 08:48:34 -05:00
components Adding margin auto support to Box (#12801) 2022-01-04 15:07:01 -06:00
contexts Using EIP-1559 V2 for approve transaction flow (#12906) 2021-12-06 22:09:35 +05:30
css Feat/collectibles the return (#12970) 2021-12-13 17:41:10 -06:00
ducks Feat/collectibles the return (#12970) 2021-12-13 17:41:10 -06:00
helpers Feat/collectibles the return (#12970) 2021-12-13 17:41:10 -06:00
hooks Choose accounts refactor (#13039) 2021-12-14 18:54:46 -05:00
pages Remove unnecessary mounted state from Home component (#13202) 2022-01-04 19:19:06 -03:30
selectors Remove duplicate selector getPermissionSubjectsMetadata (#13144) 2021-12-22 16:31:48 -03:30
store Feat/check update collectible ownership (#13110) 2022-01-03 14:39:41 -06:00
1.INTRODUCTION.stories.mdx Docs/12367 Adding storybook essentials addons (#12393) 2021-10-29 07:22:07 -10:00
2.DOCUMENTATION.stories.mdx Updating storybook documentation guidelines (#12957) 2021-12-07 10:24:06 -08:00
index.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00