1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 01:47:00 +01:00
metamask-extension/ui
Mark Stacey 20e16d41be
Improve Sentry state pre-initialization (#20491)
* Improve Sentry state pre-initialization

Previously the masked state snapshot sent to Sentry would be blank for
errors that occured during initialization. Instead we'll now include
some basic information in all cases, and a masked copy of the persisted
state if it happens after the first time the persisted state is read.

* Add test

* Fix crash when persisted state not yet fetched

* Add descriptions for initial state hooks

* Update comments to reflect recent changes

* Re-order imports to follow conventions

* Move initial state hooks back to module-level

The initial state hooks are now setup at the top-level of their module.
This ensures that they're setup prior to later imports. Calling a
function to setup these hooks in the entrypoint module wouldn't
accomplish this even if it was run "before" the imports because ES6
imports always get hoisted to the top of the file.

The `localStore` instance wasn't available statically, so a new state
hook was introduced for retrieving the most recent retrieved persisted
state.

* Fix error e2e tests
2023-08-17 09:29:05 -02:30
..
__mocks__ Refactoring isManifestV3 variable (#15568) 2022-08-16 20:51:42 +05:30
components Use importAccountWithStrategy from core KeyringController (#19815) 2023-08-17 09:11:51 +02:00
contexts Support translation in background code (#19650) 2023-06-20 13:44:11 +01:00
css Update critical error styles (#20350) 2023-08-03 00:23:00 +02:00
ducks Fix #19829: UX: Multichain: Move "Import Tokens" to Modal (#19553) 2023-08-14 11:08:59 -05:00
helpers Add Opt-out Settings toggle for 4byte contract method names resolution (#20098) 2023-08-04 13:28:37 -04:00
hooks fix: remove unused useMethodData code (#20146) 2023-07-25 10:49:45 +01:00
pages Fix Typo in en.json (#20429) 2023-08-16 15:36:33 -02:30
selectors Specify that Base is a multilayer network (#20097) 2023-08-14 12:22:02 -03:00
store Add additional Sentry E2E tests (#20425) 2023-08-16 11:52:25 -02:30
index.js Improve Sentry state pre-initialization (#20491) 2023-08-17 09:29:05 -02:30
index.test.js Support translation in background code (#19650) 2023-06-20 13:44:11 +01:00