1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/app/scripts/lib
Mark Stacey 9cfa9ba6b0
Fix pre-initialization UI error state capture (#20529)
In the case where an error is thrown in the UI before initialization
has finished, we aren't capturing the application state correctly for
Sentry errors. We had a test case for this, but the test case was
broken due to a mistake in how the `network-store` was setup (it was
not matching the behavior of the real `local-tstore` module).

The pre-initialization state capture logic was updated to rely solely
upon the `localStore` instance used by Sentry to determine whether the
user had opted-in to metrics or not. This simplifies the logic a great
deal, removing the need for the `getMostRecentPersistedState` state
hook. It also ensures that state is captured corretly pre-
initialization in both the background and UI.
2023-08-18 16:32:28 -02:30
..
ens-ipfs Allow user to turn off ENS DNS resolution (#20102) 2023-07-28 11:21:43 -05:00
middleware Convert Transaction constants to typescript (#17149) 2023-01-18 08:47:29 -06:00
migrator Log before and after each migration run (#20424) 2023-08-15 19:19:48 -02:30
ppom Fix import that was resulting in a depcheck error (#20383) 2023-08-03 12:26:05 -02:30
rpc-method-middleware Ensure chainId comparison in switchEthereumChain handler is case insensitive (#20149) 2023-07-24 16:34:51 -02:30
segment
account-tracker.js
account-tracker.test.js
backup.js Rename BackupController to Backup (#20465) 2023-08-16 16:59:17 -02:30
backup.test.js Rename BackupController to Backup (#20465) 2023-08-16 16:59:17 -02:30
cleanErrorStack.js
cleanErrorStack.test.js
ComposableObservableStore.js Initialize composable observable store after update (#20468) 2023-08-17 12:22:37 -02:30
ComposableObservableStore.test.js Initialize composable observable store after update (#20468) 2023-08-17 12:22:37 -02:30
createDupeReqFilterMiddleware.js
createDupeReqFilterMiddleware.test.js
createLoggerMiddleware.js
createMetamaskMiddleware.js
createMetaRPCHandler.js
createMetaRPCHandler.test.js
createOnboardingMiddleware.js
createOriginMiddleware.js
createRPCMethodTrackingMiddleware.js
createRPCMethodTrackingMiddleware.test.js
createStreamSink.js
createTabIdMiddleware.js
extractEthjsErrorMessage.js
get-first-preferred-lang-code.js
getObjStructure.js
local-store.js Improve Sentry state pre-initialization (#20491) 2023-08-17 09:29:05 -02:30
local-store.test.js Improve Sentry state pre-initialization (#20491) 2023-08-17 09:29:05 -02:30
metaRPCClientFactory.js
metaRPCClientFactory.test.js
network-store.js Fix pre-initialization UI error state capture (#20529) 2023-08-18 16:32:28 -02:30
notification-manager.js
notification-manager.test.ts
security-provider-helpers.test.ts
security-provider-helpers.ts
seed-phrase-verifier.js
seed-phrase-verifier.test.js
sentry-filter-events.ts Capture Sentry errors prior to initialization (#20265) 2023-07-31 18:49:32 -02:30
setup-initial-state-hooks.js Fix pre-initialization UI error state capture (#20529) 2023-08-18 16:32:28 -02:30
setupSentry.js Fix Sentry breadcrumbs collection during initialization (#20521) 2023-08-18 05:47:23 -02:30
setupSentry.test.js
stream-utils.js
util.test.js
util.ts